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/trunk@1845558 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -856,7 +856,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;
|
||||
@@ -896,7 +896,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(",");
|
||||
@@ -986,8 +986,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