Class OIDCRequestResolver
- java.lang.Object
-
- io.asgardeo.java.oidc.sdk.request.OIDCRequestResolver
-
public class OIDCRequestResolver extends Object
OIDCRequestResolver is the class responsible for resolving requests based on theOIDCAgentConfigand the request parameters.OIDCRequestResolver verifies if:
- The request is a URL to skip
- The request is a Logout request
- The request is an error
- The request contains an authorization code response
- The request is a callback response
and returns boolean values.
-
-
Constructor Summary
Constructors Constructor Description OIDCRequestResolver(javax.servlet.http.HttpServletRequest request, OIDCAgentConfig oidcAgentConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisAuthorizationCodeResponse()Checks if the request is an Authorization Code response.booleanisCallbackResponse()Checks if the request is a callback response.booleanisError()Checks if the request contains a parameter, "error".booleanisLogout()Checks if the request contains is_logout parameter.booleanisLogoutURL()Checks if the request is a logout request.booleanisSkipURI()Checks if the request is a URI to skip.
-
-
-
Constructor Detail
-
OIDCRequestResolver
public OIDCRequestResolver(javax.servlet.http.HttpServletRequest request, OIDCAgentConfig oidcAgentConfig)
-
-
Method Detail
-
isError
public boolean isError()
Checks if the request contains a parameter, "error".- Returns:
- True if the request contains an "error" parameter, false otherwise.
-
isAuthorizationCodeResponse
public boolean isAuthorizationCodeResponse()
Checks if the request is an Authorization Code response.- Returns:
- True if the request is parsed as a valid Authorization response, false otherwise.
-
isLogoutURL
public boolean isLogoutURL()
Checks if the request is a logout request.- Returns:
- True if the request ends with the logout URL configured in the
OIDCAgentConfig, false otherwise.
-
isSkipURI
public boolean isSkipURI()
Checks if the request is a URI to skip.- Returns:
- True if the request is a URL configured in the
OIDCAgentConfigas skipURIs, false otherwise.
-
isLogout
public boolean isLogout()
Checks if the request contains is_logout parameter.- Returns:
- True if the request contains a parameter called is_logout and its value is true, false otherwise.
-
isCallbackResponse
public boolean isCallbackResponse()
Checks if the request is a callback response.- Returns:
- True if the request contains the path of the callback URL configured in the
OIDCAgentConfig, false otherwise.
-
-