Class DefaultReactiveOAuth2UserService

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      reactor.core.publisher.Mono<org.springframework.security.oauth2.core.user.OAuth2User> loadUser​(OAuth2UserRequest userRequest)
      Returns an OAuth2User after obtaining the user attributes of the End-User from the UserInfo Endpoint.
      void setWebClient​(org.springframework.web.reactive.function.client.WebClient webClient)
      Sets the WebClient used for retrieving the user endpoint
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultReactiveOAuth2UserService

        public DefaultReactiveOAuth2UserService()
    • Method Detail

      • loadUser

        public reactor.core.publisher.Mono<org.springframework.security.oauth2.core.user.OAuth2User> loadUser​(OAuth2UserRequest userRequest)
                                                                                                       throws org.springframework.security.oauth2.core.OAuth2AuthenticationException
        Description copied from interface: ReactiveOAuth2UserService
        Returns an OAuth2User after obtaining the user attributes of the End-User from the UserInfo Endpoint.
        Specified by:
        loadUser in interface ReactiveOAuth2UserService<OAuth2UserRequest,​org.springframework.security.oauth2.core.user.OAuth2User>
        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
      • setWebClient

        public void setWebClient​(org.springframework.web.reactive.function.client.WebClient webClient)
        Sets the WebClient used for retrieving the user endpoint
        Parameters:
        webClient - the client to use