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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddisplayCookieInformation(jakarta.servlet.http.Cookie[] cookies) protected voiddisplayRequestInformation(jakarta.servlet.http.HttpServletRequest request) protected jakarta.servlet.http.Cookie[]getCookies(jakarta.servlet.http.HttpServletRequest request) Returns the list of prefix for unauthenticated URLs, typically the URLs associated to login prompt.handleLoginPrompt(jakarta.servlet.http.HttpServletRequest request, jakarta.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(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Handles logout operation.handleRetrieveIdentity(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse httpResponse) Retrieves user identification information from the request.voidinitPlugin(Map<String, String> parameters) Initializes the Plugin from parameters set in the XML descriptor.needLoginPrompt(jakarta.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:NuxeoAuthenticationPluginReturns the list of prefix for unauthenticated URLs, typically the URLs associated to login prompt.- Specified by:
getUnAuthenticatedURLPrefixin interfaceNuxeoAuthenticationPlugin
-
handleLoginPrompt
public Boolean handleLoginPrompt(jakarta.servlet.http.HttpServletRequest request, jakarta.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:
handleLoginPromptin 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(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse httpResponse) Description copied from interface:NuxeoAuthenticationPluginRetrieves user identification information from the request.- Specified by:
handleRetrieveIdentityin interfaceNuxeoAuthenticationPlugin- Parameters:
request- the requesthttpResponse- the response
-
needLoginPrompt
Description copied from interface:NuxeoAuthenticationPluginDefines if the authentication plugin needs to do a login prompt.- Specified by:
needLoginPromptin interfaceNuxeoAuthenticationPlugin- Returns:
- true if LoginPrompt is used
-
handleLogout
public Boolean handleLogout(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Description copied from interface:NuxeoAuthenticationPluginLogoutExtensionHandles 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:
handleLogoutin interfaceNuxeoAuthenticationPluginLogoutExtension- Returns:
- true if there is a redirection
-
getCookies
protected jakarta.servlet.http.Cookie[] getCookies(jakarta.servlet.http.HttpServletRequest request) -
displayCookieInformation
protected void displayCookieInformation(jakarta.servlet.http.Cookie[] cookies) -
displayRequestInformation
protected void displayRequestInformation(jakarta.servlet.http.HttpServletRequest request) -
initPlugin
Description copied from interface:NuxeoAuthenticationPluginInitializes the Plugin from parameters set in the XML descriptor.- Specified by:
initPluginin interfaceNuxeoAuthenticationPlugin
-