Interface OpenIdAuthenticationMapper
-
- All Known Implementing Classes:
DefaultOpenIdAuthenticationMapper
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@DefaultImplementation(DefaultOpenIdAuthenticationMapper.class) @FunctionalInterface public interface OpenIdAuthenticationMapper
Responsible for converting an OpenID token response to aAuthenticationrepresenting the authenticated user.- Since:
- 1.2.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringOPENID_TOKEN_KEY
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.micronaut.security.authentication.AuthenticationResponsecreateAuthenticationResponse(java.lang.String providerName, OpenIdTokenResponse tokenResponse, OpenIdClaims openIdClaims, State state)
-
-
-
Field Detail
-
OPENID_TOKEN_KEY
static final java.lang.String OPENID_TOKEN_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
createAuthenticationResponse
@NonNull io.micronaut.security.authentication.AuthenticationResponse createAuthenticationResponse(java.lang.String providerName, OpenIdTokenResponse tokenResponse, OpenIdClaims openIdClaims, @Nullable State state)- Parameters:
providerName- The OpenID provider nametokenResponse- The token responseopenIdClaims- The OpenID claimsstate- The state of the response- Returns:
- An authentication response
-
-