Interface OAuth2UserService<R extends OAuth2UserRequest,U extends OAuth2User>
- 
- Type Parameters:
- R- The type of OAuth 2.0 User Request
- U- The type of OAuth 2.0 User
 - All Known Implementing Classes:
- CustomUserTypesOAuth2UserService,- DefaultOAuth2UserService,- DelegatingOAuth2UserService,- OidcUserService
 - Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
 
 @FunctionalInterface public interface OAuth2UserService<R extends OAuth2UserRequest,U extends OAuth2User>Implementations of this interface are responsible for obtaining the user attributes of the End-User (Resource Owner) from the UserInfo Endpoint using theAccess Tokengranted to theClientand returning anAuthenticatedPrincipalin the form of anOAuth2User.- Since:
- 5.0
- See Also:
- OAuth2UserRequest,- OAuth2User,- AuthenticatedPrincipal
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description UloadUser(R userRequest)Returns anOAuth2Userafter obtaining the user attributes of the End-User from the UserInfo Endpoint.
 
- 
- 
- 
Method Detail- 
loadUserU loadUser(R userRequest) throws OAuth2AuthenticationException Returns anOAuth2Userafter obtaining the user attributes of the End-User from the UserInfo Endpoint.- Parameters:
- userRequest- the user request
- Returns:
- an OAuth2User
- Throws:
- OAuth2AuthenticationException- if an error occurs while attempting to obtain the user attributes from the UserInfo Endpoint
 
 
- 
 
-