Class ClearTrustAuthenticator
java.lang.Object
org.nuxeo.ecm.platform.ui.web.auth.cleartrust.ClearTrustAuthenticator
- All Implemented Interfaces:
NuxeoAuthenticationPlugin
,NuxeoAuthenticationPluginLogoutExtension
public class ClearTrustAuthenticator
extends Object
implements NuxeoAuthenticationPlugin, NuxeoAuthenticationPluginLogoutExtension
- Author:
- M.-A. Darche
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
displayCookieInformation
(javax.servlet.http.Cookie[] cookies) protected void
displayRequestInformation
(javax.servlet.http.HttpServletRequest request) protected javax.servlet.http.Cookie[]
getCookies
(javax.servlet.http.HttpServletRequest request) Returns the list of prefix for unauthenticated URLs, typically the URLs associated to login prompt.handleLoginPrompt
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String baseURL) Redirects to the ClearTrust login page if the request doesn't contain cookies indicating that a positive authentication occurred.handleLogout
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Handles logout operation.handleRetrieveIdentity
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse httpResponse) Retrieves user identification information from the request.void
initPlugin
(Map<String, String> parameters) Initializes the Plugin from parameters set in the XML descriptor.needLoginPrompt
(javax.servlet.http.HttpServletRequest request) Defines if the authentication plugin needs to do a login prompt.
-
Field Details
-
CLEARTRUST_HEADER_UID
- See Also:
-
CLEARTRUST_COOKIE_SESSION_A
- See Also:
-
CLEARTRUST_COOKIE_SESSION
- See Also:
-
cookieDomain
-
cleartrustLoginUrl
-
cleartrustLogoutUrl
-
-
Constructor Details
-
ClearTrustAuthenticator
public ClearTrustAuthenticator()
-
-
Method Details
-
getUnAuthenticatedURLPrefix
Description copied from interface:NuxeoAuthenticationPlugin
Returns the list of prefix for unauthenticated URLs, typically the URLs associated to login prompt.- Specified by:
getUnAuthenticatedURLPrefix
in interfaceNuxeoAuthenticationPlugin
-
handleLoginPrompt
public Boolean handleLoginPrompt(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String baseURL) Redirects to the ClearTrust login page if the request doesn't contain cookies indicating that a positive authentication occurred.- Specified by:
handleLoginPrompt
in interfaceNuxeoAuthenticationPlugin
- Parameters:
request
- the requestresponse
- the response- Returns:
- true if AuthFilter must stop execution (ie: login prompt generated a redirect), false otherwise
-
handleRetrieveIdentity
public UserIdentificationInfo handleRetrieveIdentity(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse httpResponse) Description copied from interface:NuxeoAuthenticationPlugin
Retrieves user identification information from the request.- Specified by:
handleRetrieveIdentity
in interfaceNuxeoAuthenticationPlugin
- Parameters:
request
- the requesthttpResponse
- the response
-
needLoginPrompt
Description copied from interface:NuxeoAuthenticationPlugin
Defines if the authentication plugin needs to do a login prompt.- Specified by:
needLoginPrompt
in interfaceNuxeoAuthenticationPlugin
- Returns:
- true if LoginPrompt is used
-
handleLogout
public Boolean handleLogout(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Description copied from interface:NuxeoAuthenticationPluginLogoutExtension
Handles logout operation.Generic logout (killing session and Seam objects) is done by LogoutActionBean This interface must be implemented by auth plugin when the target auth system needs a specific logout procedure.
- Specified by:
handleLogout
in interfaceNuxeoAuthenticationPluginLogoutExtension
- Returns:
- true if there is a redirection
-
getCookies
protected javax.servlet.http.Cookie[] getCookies(javax.servlet.http.HttpServletRequest request) -
displayCookieInformation
protected void displayCookieInformation(javax.servlet.http.Cookie[] cookies) -
displayRequestInformation
protected void displayRequestInformation(javax.servlet.http.HttpServletRequest request) -
initPlugin
Description copied from interface:NuxeoAuthenticationPlugin
Initializes the Plugin from parameters set in the XML descriptor.- Specified by:
initPlugin
in interfaceNuxeoAuthenticationPlugin
-