Class OIDCRequestBuilder
- java.lang.Object
-
- io.asgardeo.java.oidc.sdk.request.OIDCRequestBuilder
-
public class OIDCRequestBuilder extends Object
OIDCRequestBuilder is the class responsible for building requests for theOIDCManagerbased on theOIDCAgentConfig.OIDCRequestBuilder can build:
- Authorization requests
- Logout requests
and return the String values of the generated requests.
-
-
Constructor Summary
Constructors Constructor Description OIDCRequestBuilder(OIDCAgentConfig oidcAgentConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthenticationRequestbuildAuthenticationRequest()ReturnsAuthenticationRequestAuthentication request.LogoutRequestbuildLogoutRequest(SessionContext sessionContext)ReturnsLogoutRequestLogout request.
-
-
-
Constructor Detail
-
OIDCRequestBuilder
public OIDCRequestBuilder(OIDCAgentConfig oidcAgentConfig)
-
-
Method Detail
-
buildAuthenticationRequest
public AuthenticationRequest buildAuthenticationRequest()
ReturnsAuthenticationRequestAuthentication request. To build the authentication request,OIDCAgentConfigshould contain:- The client ID
- The scope
- The callback URI
- The authorization endpoint URI
- Returns:
- Authentication request.
-
buildLogoutRequest
public LogoutRequest buildLogoutRequest(SessionContext sessionContext) throws SSOAgentServerException
ReturnsLogoutRequestLogout request. To build the logout request,OIDCAgentConfigshould contain:- The logout endpoint URI
- The post logout redirection URI
- Parameters:
sessionContext-SessionContextobject with information of the current LoggedIn session. It must include a valid ID token.- Returns:
- Logout request.
- Throws:
SSOAgentServerException
-
-