|
@@ -22,6 +22,7 @@ import org.springframework.beans.factory.config.BeanDefinition;
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
import org.springframework.context.annotation.Role;
|
|
|
+import org.springframework.core.Ordered;
|
|
|
import org.springframework.http.HttpEntity;
|
|
|
import org.springframework.http.ResponseEntity;
|
|
|
import org.springframework.security.authorization.method.AuthorizationAdvisorProxyFactory;
|
|
@@ -37,7 +38,9 @@ class AuthorizationProxyWebConfiguration {
|
|
|
return new WebTargetVisitor();
|
|
|
}
|
|
|
|
|
|
- static class WebTargetVisitor implements AuthorizationAdvisorProxyFactory.TargetVisitor {
|
|
|
+ static class WebTargetVisitor implements AuthorizationAdvisorProxyFactory.TargetVisitor, Ordered {
|
|
|
+
|
|
|
+ private static final int DEFAULT_ORDER = 100;
|
|
|
|
|
|
@Override
|
|
|
public Object visit(AuthorizationAdvisorProxyFactory proxyFactory, Object target) {
|
|
@@ -60,6 +63,11 @@ class AuthorizationProxyWebConfiguration {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public int getOrder() {
|
|
|
+ return DEFAULT_ORDER;
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
}
|