R
- The type of OAuth 2.0 User RequestU
- The type of OAuth 2.0 User@FunctionalInterface
public interface OAuth2UserService<R extends OAuth2UserRequest,U extends OAuth2User>
Access Token
granted to the Client
and returning an AuthenticatedPrincipal
in the form of an OAuth2User
.OAuth2UserRequest
,
OAuth2User
,
AuthenticatedPrincipal
Modifier and Type | Method and Description |
---|---|
U |
loadUser(R userRequest)
Returns an
OAuth2User after obtaining the user attributes of the End-User from the UserInfo Endpoint. |
U loadUser(R userRequest) throws OAuth2AuthenticationException
OAuth2User
after obtaining the user attributes of the End-User from the UserInfo Endpoint.userRequest
- the user requestOAuth2User
OAuth2AuthenticationException
- if an error occurs while attempting to obtain the user attributes from the UserInfo Endpoint