Interface 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).
    Since:
    1.3.0
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethodDescription
      voidcustomize​(org.springframework.security.oauth2.client.OAuth2RestTemplate template)
      Customize the rest template before it is initialized.
    • Method Detail

      • customize

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