mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
. Fix to external access URLs to correctly navigate to specified NodeRef and setup Breadcrumb component etc.
. Tidy up of web-client authentication code git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2231 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -351,7 +351,9 @@ public class LoginBean
|
||||
|
||||
boolean alfrescoAuth = (session.get(LOGIN_EXTERNAL_AUTH) == null);
|
||||
|
||||
// invalidate Session for this user
|
||||
// Invalidate Session for this user.
|
||||
// This causes the sessionDestroyed() event to be processed by ContextListener
|
||||
// which is responsible for invalidating the ticket and clearing the security context
|
||||
if (Application.inPortalServer() == false)
|
||||
{
|
||||
HttpServletRequest request = (HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest();
|
||||
@@ -363,13 +365,6 @@ public class LoginBean
|
||||
request.getPortletSession().invalidate();
|
||||
}
|
||||
|
||||
// invalidate User ticket
|
||||
if (user != null)
|
||||
{
|
||||
this.authenticationService.invalidateTicket(user.getTicket());
|
||||
this.authenticationService.clearCurrentSecurityContext();
|
||||
}
|
||||
|
||||
// Request that the username cookie state is removed - this is not
|
||||
// possible from JSF - so instead we setup a session variable
|
||||
// which will be detected by the login.jsp/Portlet as appropriate.
|
||||
|
Reference in New Issue
Block a user