Class DelegatingOAuth2UserService<R extends OAuth2UserRequest,​U extends org.springframework.security.oauth2.core.user.OAuth2User>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      U loadUser​(R userRequest)
      Returns an OAuth2User after obtaining the user attributes of the End-User from the UserInfo Endpoint.
      • Methods inherited from class java.lang.Object

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

      • DelegatingOAuth2UserService

        public DelegatingOAuth2UserService​(java.util.List<OAuth2UserService<R,​U>> userServices)
        Constructs a DelegatingOAuth2UserService using the provided parameters.
        Parameters:
        userServices - a List of OAuth2UserService(s)
    • Method Detail

      • loadUser

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