public class DefaultOIDCManager extends Object implements OIDCManager
| Constructor and Description |
|---|
DefaultOIDCManager(OIDCAgentConfig oidcAgentConfig) |
| Modifier and Type | Method and Description |
|---|---|
SessionContext |
handleOIDCCallback(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
RequestContext requestContext)
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 returned. |
RequestContext |
logout(SessionContext sessionContext,
javax.servlet.http.HttpServletResponse response)
Builds a logout request and redirects.
|
RequestContext |
sendForLogin(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Builds an authentication request and redirects.
|
public DefaultOIDCManager(OIDCAgentConfig oidcAgentConfig) throws SSOAgentClientException
SSOAgentClientExceptionpublic RequestContext sendForLogin(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws SSOAgentException
sendForLogin in interface OIDCManagerrequest - Incoming HttpServletRequest.response - Outgoing HttpServletResponseRequestContext Object containing details regarding the state ID, nonce value for the
AuthenticationRequest.SSOAgentExceptionpublic SessionContext handleOIDCCallback(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, RequestContext requestContext) throws SSOAgentException
SessionContext object and returned.handleOIDCCallback in interface OIDCManagerrequest - Incoming HttpServletRequest.response - Outgoing HttpServletResponse.requestContext - RequestContext object containing the authentication request related information.SessionContext Object containing the authenticated User, AccessToken, RefreshToken
and IDToken.SSOAgentException - Upon failed authentication.public RequestContext logout(SessionContext sessionContext, javax.servlet.http.HttpServletResponse response) throws SSOAgentException
logout in interface OIDCManagersessionContext - SessionContext of the logged in session.response - Outgoing HttpServletResponseRequestContext Object containing details regarding the state ID and other parameters of the
LogoutRequest.SSOAgentExceptionCopyright © 2022 WSO2. All rights reserved.