public interface OauthUserDetailsMapper
UserDetails
object.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACCESS_TOKEN_KEY
A key to be stored in the user details to store the
access token returned by the provider.
|
static java.lang.String |
PROVIDER_KEY
A key to be stored in the user details to denote which
provider authenticated the user.
|
static java.lang.String |
REFRESH_TOKEN_KEY
A key to be stored in the user details to store the
refresh token returned by the provider.
|
Modifier and Type | Method and Description |
---|---|
default org.reactivestreams.Publisher<AuthenticationResponse> |
createAuthenticationResponse(TokenResponse tokenResponse,
State state)
Convert the token response and state into an authentication response.
|
org.reactivestreams.Publisher<UserDetails> |
createUserDetails(TokenResponse tokenResponse)
Deprecated.
Use
instead . This
method will only be called if the new method is not overridden. |
static final java.lang.String PROVIDER_KEY
static final java.lang.String ACCESS_TOKEN_KEY
static final java.lang.String REFRESH_TOKEN_KEY
@Deprecated org.reactivestreams.Publisher<UserDetails> createUserDetails(TokenResponse tokenResponse)
instead
. This
method will only be called if the new method is not overridden.tokenResponse
- The token responsedefault org.reactivestreams.Publisher<AuthenticationResponse> createAuthenticationResponse(TokenResponse tokenResponse, @Nullable State state)
tokenResponse
- The token responsestate
- The OAuth state