Class DemoConfiguration
-
- All Implemented Interfaces:
@EnableOAuth2Client(cacheEnabled = true)@EnableJwtTokenValidation()@Configuration() public final class DemoConfigurationYou 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.
-
-
Constructor Summary
Constructors Constructor Description DemoConfiguration()
-
Method Summary
Modifier and Type Method Description final RestClientCustomizercustomizer(OAuth2ClientRequestInterceptor reqInterceptor)final OAuth2ClientRequestInterceptorrequestInterceptor(ClientConfigurationProperties properties, OAuth2AccessTokenService service, ClientConfigurationPropertiesMatcher matcher)final ClientConfigurationPropertiesMatcherconfigMatcher()-
-
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()
-
-
-
-