Interface OpenIdClient
- All Superinterfaces:
OauthClient
- All Known Implementing Classes:
DefaultOpenIdClient
Extends the
OauthClient
with OpenID specific functionality.- Since:
- 1.2.0
- Author:
- James Kleeh
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionOptional<io.micronaut.http.MutableHttpResponse<?>>
endSessionRedirect
(io.micronaut.http.HttpRequest<?> request, Authentication authentication) Redirects to the end session endpoint of an OpenID provider.boolean
Methods inherited from interface io.micronaut.security.oauth2.client.OauthClient
authorizationRedirect, getName, onCallback
-
Method Details
-
supportsEndSession
boolean supportsEndSession()- Returns:
- True if this client supports end session
-
endSessionRedirect
Optional<io.micronaut.http.MutableHttpResponse<?>> endSessionRedirect(io.micronaut.http.HttpRequest<?> request, Authentication authentication) Redirects to the end session endpoint of an OpenID provider. Returns an empty optional if the provider does not support end session or anEndSessionEndpoint
could not be resolved for the provider.- Parameters:
request
- The current requestauthentication
- The current authentication- Returns:
- An optional response
-