Class JWTRedirectAuthenticationHandler
java.lang.Object
com.mapr.web.security.hadoop.jakartaauth.MultiMechsAuthenticationHandler
com.mapr.web.security.hadoop.jakartaauth.JWTRedirectAuthenticationHandler
- All Implemented Interfaces:
AuthenticationHandler
-
Nested Class Summary
Nested classes/interfaces inherited from class com.mapr.web.security.hadoop.jakartaauth.MultiMechsAuthenticationHandler
MultiMechsAuthenticationHandler.AuthHandlerEnum -
Field Summary
FieldsFields inherited from class com.mapr.web.security.hadoop.jakartaauth.MultiMechsAuthenticationHandler
MTYPEFields inherited from interface com.mapr.web.security.hadoop.jakartaauth.AuthenticationHandler
WWW_AUTHENTICATE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddHeader(jakarta.servlet.http.HttpServletResponse response) getJWTTokenFromCode(String code, jakarta.servlet.http.HttpServletRequest request) voidinit(Properties config) postauthenticate(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Methods inherited from class com.mapr.web.security.hadoop.jakartaauth.MultiMechsAuthenticationHandler
authenticate, destroy, getAuthBasedEntity, getAuthorizationHeaderName, getType, managementOperation
-
Field Details
-
AUTHENTICATION_PROVIDER_URL
- See Also:
-
JWT_CLIENT_ID
- See Also:
-
JWT_CLIENT_SECRET
- See Also:
-
-
Constructor Details
-
JWTRedirectAuthenticationHandler
public JWTRedirectAuthenticationHandler()
-
-
Method Details
-
init
- Specified by:
initin interfaceAuthenticationHandler- Overrides:
initin classMultiMechsAuthenticationHandler- Throws:
jakarta.servlet.ServletException
-
postauthenticate
public AuthenticationToken postauthenticate(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException, AuthenticationException - Overrides:
postauthenticatein classMultiMechsAuthenticationHandler- Throws:
IOExceptionAuthenticationException
-
getJWTTokenFromCode
public String getJWTTokenFromCode(String code, jakarta.servlet.http.HttpServletRequest request) throws IOException - Throws:
IOException
-
getTokenUrl
-
getAuthUrl
-
addHeader
public void addHeader(jakarta.servlet.http.HttpServletResponse response) - Overrides:
addHeaderin classMultiMechsAuthenticationHandler
-