|
|
|
@ -25,7 +25,6 @@ import java.lang.annotation.Target;
@@ -25,7 +25,6 @@ import java.lang.annotation.Target;
|
|
|
|
|
import jakarta.servlet.http.HttpServletRequest; |
|
|
|
|
import jakarta.servlet.http.HttpServletResponse; |
|
|
|
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
|
import org.springframework.boot.autoconfigure.condition.AllNestedConditions; |
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; |
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication; |
|
|
|
@ -53,7 +52,7 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@@ -53,7 +52,7 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
|
|
|
|
|
*/ |
|
|
|
|
@Configuration(proxyBeanMethods = false) |
|
|
|
|
// @AutoConfigureAfter(OAuth2AutoConfiguration.class)
|
|
|
|
|
//@ResourceServerTokenRelayAutoConfiguration.ConditionalOnOAuth2ClientInResourceServer
|
|
|
|
|
// @ResourceServerTokenRelayAutoConfiguration.ConditionalOnOAuth2ClientInResourceServer
|
|
|
|
|
// @ConditionalOnClass(ResourceServerConfiguration.class)
|
|
|
|
|
@ConditionalOnWebApplication |
|
|
|
|
@ConditionalOnProperty(value = "spring.cloud.mvc.token-relay.enabled", matchIfMissing = true) |
|
|
|
@ -73,8 +72,8 @@ public class ResourceServerTokenRelayAutoConfiguration {
@@ -73,8 +72,8 @@ public class ResourceServerTokenRelayAutoConfiguration {
|
|
|
|
|
@Configuration(proxyBeanMethods = false) |
|
|
|
|
public static class ResourceServerTokenRelayRegistrationAutoConfiguration implements WebMvcConfigurer { |
|
|
|
|
|
|
|
|
|
//@Autowired
|
|
|
|
|
//AccessTokenContextRelay accessTokenContextRelay;
|
|
|
|
|
// @Autowired
|
|
|
|
|
// AccessTokenContextRelay accessTokenContextRelay;
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void addInterceptors(InterceptorRegistry registry) { |
|
|
|
|