Interface NuxeoAuthenticationPlugin
- All Known Implementing Classes:
AnonymousAuthenticator,AnonymousAuthenticatorForCAS2,BasicAuthenticator,Cas2Authenticator,ClearTrustAuthenticator,DigestAuthenticator,DuoFactorsAuthenticator,FormAuthenticator,JWTAuthenticator,KeycloakAuthenticationPlugin,Krb5Authenticator,NuxeoOAuth1Authenticator,NuxeoOAuth2Authenticator,OpenIDConnectAuthenticator,PortalAuthenticator,ProxyAuthenticator,SAMLAuthenticationProvider,ShibbolethAuthenticationPlugin,TokenAuthenticator,WebEngineFormAuthenticator
public interface NuxeoAuthenticationPlugin
-
Method Summary
Modifier and TypeMethodDescriptionReturns the list of prefix for unauthenticated URLs, typically the URLs associated to login prompt.handleLoginPrompt(jakarta.servlet.http.HttpServletRequest httpRequest, jakarta.servlet.http.HttpServletResponse httpResponse, String baseURL) Handles the Login Prompt.handleRetrieveIdentity(jakarta.servlet.http.HttpServletRequest httpRequest, 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 httpRequest) Defines if the authentication plugin needs to do a login prompt.
-
Method Details
-
handleLoginPrompt
Boolean handleLoginPrompt(jakarta.servlet.http.HttpServletRequest httpRequest, jakarta.servlet.http.HttpServletResponse httpResponse, String baseURL) Handles the Login Prompt.- Parameters:
httpRequest- the requesthttpResponse- the response- Returns:
- true if AuthFilter must stop execution (ie: login prompt generated a redirect), false otherwise
-
handleRetrieveIdentity
UserIdentificationInfo handleRetrieveIdentity(jakarta.servlet.http.HttpServletRequest httpRequest, jakarta.servlet.http.HttpServletResponse httpResponse) Retrieves user identification information from the request.- Parameters:
httpRequest- the requesthttpResponse- the response
-
needLoginPrompt
Defines if the authentication plugin needs to do a login prompt.- Returns:
- true if LoginPrompt is used
-
initPlugin
Initializes the Plugin from parameters set in the XML descriptor. -
getUnAuthenticatedURLPrefix
Returns the list of prefix for unauthenticated URLs, typically the URLs associated to login prompt.
-