Interface ReactiveOAuth2UserService<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
- 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 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 Tokengranted to the
Clientand returning an
AuthenticatedPrincipalin the form of an
reactor.core.publisher.Mono<U> loadUser(R userRequest) throws OAuth2AuthenticationExceptionReturns an
OAuth2Userafter obtaining the user attributes of the End-User from the UserInfo Endpoint.