org.springframework.cloud.security.oauth2.client.feign.OAuth2FeignRequestInterceptor Java Examples

The following examples show how to use org.springframework.cloud.security.oauth2.client.feign.OAuth2FeignRequestInterceptor. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: OAuth2InterceptedFeignConfiguration.java    From cubeai with Apache License 2.0 4 votes vote down vote up
@Bean(name = "oauth2RequestInterceptor")
public RequestInterceptor getOAuth2RequestInterceptor() throws IOException {
    return new OAuth2FeignRequestInterceptor(new DefaultOAuth2ClientContext(), loadBalancedResourceDetails);
}
 
Example #2
Source File: OAuth2InterceptedFeignConfiguration.java    From cubeai with Apache License 2.0 4 votes vote down vote up
@Bean(name = "oauth2RequestInterceptor")
public RequestInterceptor getOAuth2RequestInterceptor() throws IOException {
    return new OAuth2FeignRequestInterceptor(new DefaultOAuth2ClientContext(), loadBalancedResourceDetails);
}
 
Example #3
Source File: OAuth2InterceptedFeignConfiguration.java    From cubeai with Apache License 2.0 4 votes vote down vote up
@Bean(name = "oauth2RequestInterceptor")
public RequestInterceptor getOAuth2RequestInterceptor() throws IOException {
    return new OAuth2FeignRequestInterceptor(new DefaultOAuth2ClientContext(), loadBalancedResourceDetails);
}
 
Example #4
Source File: OAuth2InterceptedFeignConfiguration.java    From cubeai with Apache License 2.0 4 votes vote down vote up
@Bean(name = "oauth2RequestInterceptor")
public RequestInterceptor getOAuth2RequestInterceptor() throws IOException {
    return new OAuth2FeignRequestInterceptor(new DefaultOAuth2ClientContext(), loadBalancedResourceDetails);
}
 
Example #5
Source File: OAuth2InterceptedFeignConfiguration.java    From cubeai with Apache License 2.0 4 votes vote down vote up
@Bean(name = "oauth2RequestInterceptor")
public RequestInterceptor getOAuth2RequestInterceptor() throws IOException {
    return new OAuth2FeignRequestInterceptor(new DefaultOAuth2ClientContext(), loadBalancedResourceDetails);
}
 
Example #6
Source File: OAuth2InterceptedFeignConfiguration.java    From cubeai with Apache License 2.0 4 votes vote down vote up
@Bean(name = "oauth2RequestInterceptor")
public RequestInterceptor getOAuth2RequestInterceptor() throws IOException {
    return new OAuth2FeignRequestInterceptor(new DefaultOAuth2ClientContext(), loadBalancedResourceDetails);
}
 
Example #7
Source File: OAuth2InterceptedFeignConfiguration.java    From cubeai with Apache License 2.0 4 votes vote down vote up
@Bean(name = "oauth2RequestInterceptor")
public RequestInterceptor getOAuth2RequestInterceptor() throws IOException {
    return new OAuth2FeignRequestInterceptor(new DefaultOAuth2ClientContext(), loadBalancedResourceDetails);
}
 
Example #8
Source File: OAuth2ClientFeignConfiguration.java    From cola-cloud with MIT License 4 votes vote down vote up
@Bean
public RequestInterceptor oauth2FeignRequestInterceptor(){
    return new OAuth2FeignRequestInterceptor(new DefaultOAuth2ClientContext(), clientCredentialsResourceDetails);
}
 
Example #9
Source File: ClientConfiguration.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
@Bean
@ConditionalOnProperty("openapipetstore.security.petstoreAuth.client-id")
public OAuth2FeignRequestInterceptor petstoreAuthRequestInterceptor(OAuth2ClientContext oAuth2ClientContext) {
  return new OAuth2FeignRequestInterceptor(oAuth2ClientContext, petstoreAuthResourceDetails());
}
 
Example #10
Source File: ClientConfiguration.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
@Bean
@ConditionalOnProperty("openapipetstore.security.petstoreAuth.client-id")
public OAuth2FeignRequestInterceptor petstoreAuthRequestInterceptor(OAuth2ClientContext oAuth2ClientContext) {
  return new OAuth2FeignRequestInterceptor(oAuth2ClientContext, petstoreAuthResourceDetails());
}
 
Example #11
Source File: CoreServiceApplication.java    From DAFramework with MIT License 4 votes vote down vote up
@Bean
public RequestInterceptor oauth2FeignRequestInterceptor() {
	return new OAuth2FeignRequestInterceptor(new DefaultOAuth2ClientContext(), clientCredentialsResourceDetails());
}
 
Example #12
Source File: AccountApplication.java    From microservice-skeleton with MIT License 4 votes vote down vote up
@Bean
public RequestInterceptor oauth2FeignRequestInterceptor() {
    return new OAuth2FeignRequestInterceptor(new DefaultOAuth2ClientContext(), clientCredentialsResourceDetails());
}
 
Example #13
Source File: OAuth2InterceptedFeignConfiguration.java    From tutorials with MIT License 4 votes vote down vote up
@Bean(name = "oauth2RequestInterceptor")
public RequestInterceptor getOAuth2RequestInterceptor() throws IOException {
    return new OAuth2FeignRequestInterceptor(new DefaultOAuth2ClientContext(), loadBalancedResourceDetails);
}