All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.nextgearcapital.feign.oauth2.autoconfigure.OAuth2FeignAutoConfiguration Maven / Gradle / Ivy

Go to download

Spring Boot Auto configuration passing Spring Security Context along to Hystrix enabled Feign clients.

There is a newer version: 1.0.3
Show newest version
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