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
a
Authentication
representing the authenticated user.- Since:
- 1.2.0
- Author:
- James Kleeh
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescription@NonNull org.reactivestreams.Publisher<AuthenticationResponse>
createAuthenticationResponse
(String providerName, OpenIdTokenResponse tokenResponse, OpenIdClaims openIdClaims, @Nullable State state)
-
Field Details
-
OPENID_TOKEN_KEY
- See Also:
-
-
Method Details
-
createAuthenticationResponse
@NonNull @NonNull org.reactivestreams.Publisher<AuthenticationResponse> createAuthenticationResponse(String providerName, OpenIdTokenResponse tokenResponse, OpenIdClaims openIdClaims, @Nullable @Nullable State state) - Parameters:
providerName
- The OpenID provider nametokenResponse
- The token responseopenIdClaims
- The OpenID claimsstate
- The state of the response- Returns:
- An authentication response
-