public class HTTPSessionBasedOIDCProcessor extends Object
DefaultOIDCManager that provides
the functionality defined by the OIDCManager with using
HTTP sessions as the storage entity for the RequestContext
and SessionContext information.| Constructor and Description |
|---|
HTTPSessionBasedOIDCProcessor(OIDCAgentConfig oidcAgentConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
handleOIDCCallback(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Processes the OIDC callback response and extract the authorization
code, builds a token request, sends the token request and parse
the token response where the authenticated user info and tokens
would be added to the
SessionContext object and written
into the available http session. |
void |
logout(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Builds a logout request and redirects.
|
void |
sendForLogin(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Builds an authentication request and redirects.
|
public HTTPSessionBasedOIDCProcessor(OIDCAgentConfig oidcAgentConfig) throws SSOAgentClientException
SSOAgentClientExceptionpublic void sendForLogin(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws SSOAgentException
RequestContext object and then, would be written to
the http session.request - Incoming HttpServletRequest.response - Outgoing HttpServletResponse.SSOAgentExceptionpublic void handleOIDCCallback(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws SSOAgentException
SessionContext object and written
into the available http session.request - Incoming HttpServletRequest.response - Outgoing HttpServletResponse.SSOAgentException - Upon failed authentication.public void logout(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws SSOAgentException
request - Incoming HttpServletRequest.response - Outgoing HttpServletResponseSSOAgentExceptionCopyright © 2023 WSO2. All rights reserved.