@DefaultImplementation(value=DefaultOpenIdUserDetailsMapper.class) public interface OpenIdUserDetailsMapper
UserDetails
representing the authenticated user.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
OPENID_TOKEN_KEY |
Modifier and Type | Method and Description |
---|---|
default AuthenticationResponse |
createAuthenticationResponse(java.lang.String providerName,
OpenIdTokenResponse tokenResponse,
OpenIdClaims openIdClaims,
State state) |
UserDetails |
createUserDetails(java.lang.String providerName,
OpenIdTokenResponse tokenResponse,
OpenIdClaims openIdClaims)
Deprecated.
Use
createAuthenticationResponse(String, OpenIdTokenResponse, OpenIdClaims, State) instead.
This method will only be called if the new method is not implemented. |
static final java.lang.String OPENID_TOKEN_KEY
@Deprecated @NonNull UserDetails createUserDetails(java.lang.String providerName, OpenIdTokenResponse tokenResponse, OpenIdClaims openIdClaims)
createAuthenticationResponse(String, OpenIdTokenResponse, OpenIdClaims, State)
instead.
This method will only be called if the new method is not implemented.providerName
- The OpenID provider nametokenResponse
- The token responseopenIdClaims
- The OpenID claims@NonNull default AuthenticationResponse createAuthenticationResponse(java.lang.String providerName, OpenIdTokenResponse tokenResponse, OpenIdClaims openIdClaims, @Nullable State state)
providerName
- The OpenID provider nametokenResponse
- The token responseopenIdClaims
- The OpenID claimsstate
- The state of the response