Interface ReactiveOAuth2UserService<R extends OAuth2UserRequest,U extends OAuth2User>
-
- Type Parameters:
R
- The type of OAuth 2.0 User RequestU
- The type of OAuth 2.0 User
- All Known Implementing Classes:
DefaultReactiveOAuth2UserService
,OidcReactiveOAuth2UserService
public interface ReactiveOAuth2UserService<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 Token
granted to theClient
and returning anAuthenticatedPrincipal
in the form of anOAuth2User
.- Since:
- 5.1
- See Also:
OAuth2UserRequest
,OAuth2User
,AuthenticatedPrincipal
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description reactor.core.publisher.Mono<U>
loadUser(R userRequest)
Returns anOAuth2User
after obtaining the user attributes of the End-User from the UserInfo Endpoint.
-
-
-
Method Detail
-
loadUser
reactor.core.publisher.Mono<U> loadUser(R userRequest) throws OAuth2AuthenticationException
Returns anOAuth2User
after 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
-
-