Class CustomUserTypesOAuth2UserService

    • Constructor Summary

      Constructors 
      Constructor Description
      CustomUserTypesOAuth2UserService​(java.util.Map<java.lang.String,​java.lang.Class<? extends org.springframework.security.oauth2.core.user.OAuth2User>> customUserTypes)
      Deprecated.
      Constructs a CustomUserTypesOAuth2UserService using the provided parameters.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      org.springframework.security.oauth2.core.user.OAuth2User loadUser​(OAuth2UserRequest userRequest)
      Deprecated.
      Returns an OAuth2User after obtaining the user attributes of the End-User from the UserInfo Endpoint.
      void setRequestEntityConverter​(org.springframework.core.convert.converter.Converter<OAuth2UserRequest,​org.springframework.http.RequestEntity<?>> requestEntityConverter)
      Deprecated.
      Sets the Converter used for converting the OAuth2UserRequest to a RequestEntity representation of the UserInfo Request.
      void setRestOperations​(org.springframework.web.client.RestOperations restOperations)
      Deprecated.
      Sets the RestOperations used when requesting the UserInfo resource.
      • Methods inherited from class java.lang.Object

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

      • CustomUserTypesOAuth2UserService

        public CustomUserTypesOAuth2UserService​(java.util.Map<java.lang.String,​java.lang.Class<? extends org.springframework.security.oauth2.core.user.OAuth2User>> customUserTypes)
        Deprecated.
        Constructs a CustomUserTypesOAuth2UserService using the provided parameters.
        Parameters:
        customUserTypes - a Map of OAuth2User type(s) keyed by Registration Id
    • Method Detail

      • loadUser

        public org.springframework.security.oauth2.core.user.OAuth2User loadUser​(OAuth2UserRequest userRequest)
                                                                          throws org.springframework.security.oauth2.core.OAuth2AuthenticationException
        Deprecated.
        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<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
      • setRequestEntityConverter

        public final void setRequestEntityConverter​(org.springframework.core.convert.converter.Converter<OAuth2UserRequest,​org.springframework.http.RequestEntity<?>> requestEntityConverter)
        Deprecated.
        Sets the Converter used for converting the OAuth2UserRequest to a RequestEntity representation of the UserInfo Request.
        Parameters:
        requestEntityConverter - the Converter used for converting to a RequestEntity representation of the UserInfo Request
        Since:
        5.1
      • setRestOperations

        public final void setRestOperations​(org.springframework.web.client.RestOperations restOperations)
        Deprecated.
        Sets the RestOperations used when requesting the UserInfo resource.

        NOTE: At a minimum, the supplied restOperations must be configured with the following:

        1. ResponseErrorHandler - OAuth2ErrorResponseErrorHandler
        Parameters:
        restOperations - the RestOperations used when requesting the UserInfo resource
        Since:
        5.1