接口 UserInfoRestTemplateCustomizer


  • public interface UserInfoRestTemplateCustomizer
    Callback for customizing the rest template used to fetch user details if authentication is done via OAuth2 access tokens. The default should be fine for most providers, but occasionally you might need to add additional interceptors, or change the request authenticator (which is how the token gets attached to outgoing requests). The rest template that is being customized here is only used internally to carry out authentication (in the SSO or Resource Server use cases).
    从以下版本开始:
    1.3.0
    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型方法说明
      voidcustomize​(org.springframework.security.oauth2.client.OAuth2RestTemplate template)
      Customize the rest template before it is initialized.
    • 方法详细资料

      • customize

        void customize​(org.springframework.security.oauth2.client.OAuth2RestTemplate template)
        Customize the rest template before it is initialized.
        参数:
        template - the rest template