"Applied fix from trunk for revision: 1845558 "
------------------------------------------------------------------------ r1845558 | jleroux | 2018-11-02 10:46:42 +0100 (ven. 02 nov. 2018) | 15 lignes Fixed: Correct behaviour of Autologin cookies (OFBIZ-10635) Renames "keep-autologin-cookie" to "use-autologin-cookie", and only create Autologin cookies when needed. No need to create Autologin cookies in applications that don't need it. Don't pass webAppName to LoginWorker::getSecuredUserLoginId, that can be handled with improved LoginWorker::getSecuredLoginIdCookieName Removes LoginWorker::autoLogoutCleanCookies, no longer needed since only those needed are created and kept (1 year at least after creation). For both autoLogin and securedLoginId cookies sets the path to the application. ------------------------------------------------------------------------ git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/branches/release17.12@1845568 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -829,7 +829,7 @@ public final class ComponentConfig {
|
||||
// CatalinaContainer modifies this field.
|
||||
private volatile boolean appBarDisplay;
|
||||
private final String accessPermission;
|
||||
private final boolean keepAutologinCookie;
|
||||
private final boolean useAutologinCookie;
|
||||
|
||||
private WebappInfo(ComponentConfig componentConfig, Element element) {
|
||||
this.componentConfig = componentConfig;
|
||||
@@ -869,7 +869,7 @@ public final class ComponentConfig {
|
||||
this.appBarDisplay = !"false".equals(element.getAttribute("app-bar-display"));
|
||||
this.privileged = !"false".equals(element.getAttribute("privileged"));
|
||||
this.accessPermission = element.getAttribute("access-permission");
|
||||
this.keepAutologinCookie = !"false".equals(element.getAttribute("keep-autologin-cookie"));
|
||||
this.useAutologinCookie = !"false".equals(element.getAttribute("use-autologin-cookie"));
|
||||
String basePermStr = element.getAttribute("base-permission");
|
||||
if (!basePermStr.isEmpty()) {
|
||||
this.basePermission = basePermStr.split(",");
|
||||
@@ -959,8 +959,8 @@ public final class ComponentConfig {
|
||||
return virtualHosts;
|
||||
}
|
||||
|
||||
public boolean getKeepAutologinCookie() {
|
||||
return keepAutologinCookie;
|
||||
public boolean isAutologinCookieUsed() {
|
||||
return useAutologinCookie;
|
||||
}
|
||||
|
||||
public synchronized void setAppBarDisplay(boolean appBarDisplay) {
|
||||
|
||||
Reference in New Issue
Block a user