Class DemoConfiguration

  • All Implemented Interfaces:

    @EnableOAuth2Client(cacheEnabled = true)@EnableJwtTokenValidation()@Configuration() 
    public final class DemoConfiguration
    
                        

    You may only need one rest client if the short name in the config matches the canonical hostname of the remote service. If not, you will need one rest client per remote service. The rest client is configured with a base url, and the rest client customizer is used to register a filter that will exchange add the access token to the request.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final RestClientCustomizer customizer(OAuth2ClientRequestInterceptor reqInterceptor)
      final OAuth2ClientRequestInterceptor requestInterceptor(ClientConfigurationProperties properties, OAuth2AccessTokenService service, ClientConfigurationPropertiesMatcher matcher)
      final ClientConfigurationPropertiesMatcher configMatcher()
      • Methods inherited from class java.lang.Object

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

      • DemoConfiguration

        DemoConfiguration()
    • Method Detail

      • customizer

        @Bean() final RestClientCustomizer customizer(OAuth2ClientRequestInterceptor reqInterceptor)
      • requestInterceptor

        @Bean() final OAuth2ClientRequestInterceptor requestInterceptor(ClientConfigurationProperties properties, OAuth2AccessTokenService service, ClientConfigurationPropertiesMatcher matcher)
      • configMatcher

        @Bean() final ClientConfigurationPropertiesMatcher configMatcher()