Interface ReactiveOAuth2UserService<R extends OAuth2UserRequest,U extends org.springframework.security.oauth2.core.user.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
- 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 ReactiveOAuth2UserService<R extends OAuth2UserRequest,U extends org.springframework.security.oauth2.core.user.OAuth2User>
Implementations of this interface are responsible for obtaining the user attributes of
the End-User (Resource Owner) from the UserInfo Endpoint using the
Access Token granted to the
Client and returning an
AuthenticatedPrincipal in the form of an OAuth2User.- Since:
- 5.1
- See Also:
-
OAuth2UserRequestOAuth2UserAuthenticatedPrincipal
-
Method Summary
-
Method Details
-
loadUser
reactor.core.publisher.Mono<U> loadUser(R userRequest) throws org.springframework.security.oauth2.core.OAuth2AuthenticationException Returns anOAuth2Userafter obtaining the user attributes of the End-User from the UserInfo Endpoint.- Parameters:
userRequest- the user request- Returns:
- an
OAuth2User - Throws:
org.springframework.security.oauth2.core.OAuth2AuthenticationException- if an error occurs while attempting to obtain the user attributes from the UserInfo Endpoint
-