Interface OpenIdClient
-
- All Superinterfaces:
OauthClient
- All Known Implementing Classes:
DefaultOpenIdClient
public interface OpenIdClient extends OauthClient
Extends theOauthClient
with OpenID specific functionality.- Since:
- 1.2.0
- Author:
- James Kleeh
- See Also:
OauthClient
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<io.micronaut.http.HttpResponse>
endSessionRedirect(io.micronaut.http.HttpRequest request, Authentication authentication)
Redirects to the end session endpoint of an OpenID provider.boolean
supportsEndSession()
-
Methods inherited from interface io.micronaut.security.oauth2.client.OauthClient
authorizationRedirect, getName, onCallback
-
-
-
-
Method Detail
-
supportsEndSession
boolean supportsEndSession()
- Returns:
- True if this client supports end session
-
endSessionRedirect
java.util.Optional<io.micronaut.http.HttpResponse> 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
-
-