public interface WebAuthStrategy
| Modifier and Type | Method and Description |
|---|---|
java.net.URI |
generateWebAuthEndSessionRequestUri(java.net.URI authRedirectUri,
WebAuthState.Builder webAuthStateBuilder,
java.lang.String token)
Generates the appropriate IdP request URI to which the user should be redirected in order to end their session.
|
java.net.URI |
generateWebAuthRequestUri(java.net.URI authRedirectUri,
WebAuthState.Builder webAuthStateBuilder)
Generates the appropriate IdP request URI to which the user should be redirected in order to satisfy the
requirements to generate an auth response which will establish an authenticated user.
|
void |
parseWebAuthEndSessionResponse(WebAuthResponseContext webAuthResponseContext)
Parse the Web Auth End Session Response from the incoming Http Request details.
|
AttributeSource |
parseWebAuthResponse(WebAuthResponseContext warc)
Parses the
WebAuthResponseContext from the IdP's auth response (encapsulated in the incoming HTTP
request) |
@Nonnull
java.net.URI generateWebAuthRequestUri(@Nonnull
java.net.URI authRedirectUri,
@Nonnull
WebAuthState.Builder webAuthStateBuilder)
throws WebAuthStrategyException
authRedirectUri - The URI to which the IdP will redirect in order to route the IdP auth response to
this strategy for parsingwebAuthStateBuilder - The WebAuthState.Builder to which certain state may be added by the
WebAuthStrategy implementation to be passed in the WebAuthResponseContextWebAuthStrategyException - if there is a problem generating the IdP auth request URI@Nonnull AttributeSource parseWebAuthResponse(@Nonnull WebAuthResponseContext warc) throws WebAuthStrategyException
WebAuthResponseContext from the IdP's auth response (encapsulated in the incoming HTTP
request)warc - The WebAuthResponseContext which contains the WebAuthState associated with the Web
Auth Request that is connected to this Web Auth Response as well as the HttpRequest details
which contain the IdP's auth responseAttributeSource based on the given auth response + auth strategy configuration detailsWebAuthStrategyException - if there is a problem parsing the WebAuthResponseContext@Nonnull
java.net.URI generateWebAuthEndSessionRequestUri(@Nonnull
java.net.URI authRedirectUri,
@Nonnull
WebAuthState.Builder webAuthStateBuilder,
@Nullable
java.lang.String token)
throws WebAuthStrategyException
authRedirectUri - The URI to which the IdP will redirect in order to route the IdP end session
response to this strategy for parsingwebAuthStateBuilder - The WebAuthState.Builder to which certain state may be added by the
WebAuthStrategy implementation to be passed in the WebAuthResponseContexttoken - The optional token from which authentication was asserted, to be used as a hint for
some implementations to perform logout appropriatelyWebAuthStrategyException - if there is a problem generating the IdP end session request URI@Nonnull
void parseWebAuthEndSessionResponse(@Nonnull
WebAuthResponseContext webAuthResponseContext)
throws WebAuthStrategyException
URI.webAuthResponseContext - The WebAuthResponseContext which contains the WebAuthState
associated with the Web Auth Request that is connected to this Web Auth Response
as well as the HttpRequest details which contain the IdP's end session
responseWebAuthStrategyException - if there is a problem parsing web auth end session response