Class DefaultOAuth2UserService

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      OAuth2User loadUser​(OAuth2UserRequest userRequest)
      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)
      Sets the Converter used for converting the OAuth2UserRequest to a RequestEntity representation of the UserInfo Request.
      void setRestOperations​(org.springframework.web.client.RestOperations restOperations)
      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

      • DefaultOAuth2UserService

        public DefaultOAuth2UserService()
    • Method Detail

      • setRequestEntityConverter

        public final void setRequestEntityConverter​(org.springframework.core.convert.converter.Converter<OAuth2UserRequest,​org.springframework.http.RequestEntity<?>> requestEntityConverter)
        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)
        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