mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
. Fix for AWC-552
- Alfresco external auth session marker was being checked for after the session had already been invalidated git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2454 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -352,6 +352,9 @@ public class LoginBean
|
|||||||
Map session = context.getExternalContext().getSessionMap();
|
Map session = context.getExternalContext().getSessionMap();
|
||||||
User user = (User) session.get(AuthenticationHelper.AUTHENTICATION_USER);
|
User user = (User) session.get(AuthenticationHelper.AUTHENTICATION_USER);
|
||||||
|
|
||||||
|
// need to capture this value before invalidating the session
|
||||||
|
boolean externalAuth = isAlfrescoAuth();
|
||||||
|
|
||||||
// Invalidate Session for this user.
|
// Invalidate Session for this user.
|
||||||
// This causes the sessionDestroyed() event to be processed by ContextListener
|
// This causes the sessionDestroyed() event to be processed by ContextListener
|
||||||
// which is responsible for invalidating the ticket and clearing the security context
|
// which is responsible for invalidating the ticket and clearing the security context
|
||||||
@@ -378,7 +381,7 @@ public class LoginBean
|
|||||||
Application.setLanguage(context, this.language);
|
Application.setLanguage(context, this.language);
|
||||||
}
|
}
|
||||||
|
|
||||||
return isAlfrescoAuth() ? "logout" : "relogin";
|
return externalAuth ? "logout" : "relogin";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user