com.nextgearcapital.feign.oauth2.autoconfigure.OAuth2FeignAutoConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of feign-hystrix-oauth2-spring-boot-starter Show documentation
Show all versions of feign-hystrix-oauth2-spring-boot-starter Show documentation
Spring Boot Auto configuration passing Spring Security Context along to Hystrix enabled Feign clients.
package com.nextgearcapital.feign.oauth2.autoconfigure;
import feign.Feign;
import feign.RequestInterceptor;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
@ConditionalOnClass({ Feign.class })
@ConditionalOnProperty(value = "feign.oauth2.passthrough.enabled", matchIfMissing = true)
public class OAuth2FeignAutoConfiguration {
@Bean
public RequestInterceptor oauth2FeignRequestInterceptor() {
return new OAuth2FeignRequestInterceptor();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy