Class OAuth2RestClientHttpServiceGroupConfigurer

java.lang.Object
org.springframework.security.oauth2.client.web.client.support.OAuth2RestClientHttpServiceGroupConfigurer
All Implemented Interfaces:
org.springframework.core.Ordered, org.springframework.web.client.support.RestClientHttpServiceGroupConfigurer, org.springframework.web.service.registry.HttpServiceGroupConfigurer<org.springframework.web.client.RestClient.Builder>

public final class OAuth2RestClientHttpServiceGroupConfigurer extends Object implements org.springframework.web.client.support.RestClientHttpServiceGroupConfigurer
Simplify adding OAuth2 support to interface based rest clients that use RestClient. It will add OAuth2ClientHttpRequestInterceptor to the RestClient and ClientRegistrationIdProcessor to the HttpServiceProxyFactory.
Since:
7.0
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.springframework.web.service.registry.HttpServiceGroupConfigurer

    org.springframework.web.service.registry.HttpServiceGroupConfigurer.ClientCallback<CB extends Object>, org.springframework.web.service.registry.HttpServiceGroupConfigurer.GroupCallback<CB extends Object>, org.springframework.web.service.registry.HttpServiceGroupConfigurer.Groups<CB extends Object>, org.springframework.web.service.registry.HttpServiceGroupConfigurer.InitializingClientCallback<CB extends Object>, org.springframework.web.service.registry.HttpServiceGroupConfigurer.ProxyFactoryCallback
  • Field Summary

    Fields inherited from interface org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    configureGroups(org.springframework.web.service.registry.HttpServiceGroupConfigurer.Groups<org.springframework.web.client.RestClient.Builder> groups)
     
    from(OAuth2AuthorizedClientManager authorizedClientManager)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.web.service.registry.HttpServiceGroupConfigurer

    getOrder
  • Method Details

    • configureGroups

      public void configureGroups(org.springframework.web.service.registry.HttpServiceGroupConfigurer.Groups<org.springframework.web.client.RestClient.Builder> groups)
      Specified by:
      configureGroups in interface org.springframework.web.service.registry.HttpServiceGroupConfigurer<org.springframework.web.client.RestClient.Builder>
    • from

      public static OAuth2RestClientHttpServiceGroupConfigurer from(OAuth2AuthorizedClientManager authorizedClientManager)