Interface OauthAuthenticationMapper
-
public interface OauthAuthenticationMapperA contract for mapping an OAuth 2.0 token endpoint response to aAuthenticationResponseobject.- Since:
- 1.2.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringACCESS_TOKEN_KEYA key to be stored in the user details to store the access token returned by the provider.static java.lang.StringPROVIDER_KEYA key to be stored in the user details to denote which provider authenticated the user.static java.lang.StringREFRESH_TOKEN_KEYA key to be stored in the user details to store the refresh token returned by the provider.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.reactivestreams.Publisher<io.micronaut.security.authentication.AuthenticationResponse>createAuthenticationResponse(TokenResponse tokenResponse, State state)Convert the token response and state into an authentication response.
-
-
-
Field Detail
-
PROVIDER_KEY
static final java.lang.String PROVIDER_KEY
A key to be stored in the user details to denote which provider authenticated the user.- See Also:
- Constant Field Values
-
ACCESS_TOKEN_KEY
static final java.lang.String ACCESS_TOKEN_KEY
A key to be stored in the user details to store the access token returned by the provider.- See Also:
- Constant Field Values
-
REFRESH_TOKEN_KEY
static final java.lang.String REFRESH_TOKEN_KEY
A key to be stored in the user details to store the refresh token returned by the provider.- See Also:
- Constant Field Values
-
-
Method Detail
-
createAuthenticationResponse
org.reactivestreams.Publisher<io.micronaut.security.authentication.AuthenticationResponse> createAuthenticationResponse(TokenResponse tokenResponse, @Nullable State state)
Convert the token response and state into an authentication response.- Parameters:
tokenResponse- The token responsestate- The OAuth state- Returns:
- The authentication response
-
-