Browse Source

Merge branch '5.7.x' into 5.8.x

Closes gh-12516
pull/12601/head
Josh Cummings 3 years ago
parent
commit
6f43104eb3
No known key found for this signature in database
GPG Key ID: A306A51F43B8E5A5
  1. 4
      docs/modules/ROOT/pages/servlet/authorization/method-security.adoc

4
docs/modules/ROOT/pages/servlet/authorization/method-security.adoc

@ -548,7 +548,7 @@ class MethodSecurityConfig { @@ -548,7 +548,7 @@ class MethodSecurityConfig {
@Bean
@Role(BeanDefinition.ROLE_INFRASTRUCTURE)
public Advisor customAuthorize(AuthorizationManager<MethodInvocationResult> rules) {
AnnotationMethodMatcher pattern = new AnnotationMethodMatcher(MySecurityAnnotation.class);
AnnotationMatchingPointcut pattern = new AnnotationMatchingPointcut(MySecurityAnnotation.class);
AuthorizationManagerAfterMethodInterceptor interceptor = new AuthorizationManagerAfterMethodInterceptor(pattern, rules);
interceptor.setOrder(AuthorizationInterceptorsOrder.POST_AUTHORIZE_ADVISOR_ORDER.getOrder() + 1);
return interceptor;
@ -564,7 +564,7 @@ class MethodSecurityConfig { @@ -564,7 +564,7 @@ class MethodSecurityConfig {
@Bean
@Role(BeanDefinition.ROLE_INFRASTRUCTURE)
fun customAuthorize(rules : AuthorizationManager<MethodInvocationResult>) : Advisor {
val pattern = AnnotationMethodMatcher(MySecurityAnnotation::class.java);
val pattern = AnnotationMatchingPointcut(MySecurityAnnotation::class.java);
val interceptor = AuthorizationManagerAfterMethodInterceptor(pattern, rules);
interceptor.setOrder(AuthorizationInterceptorsOrder.POST_AUTHORIZE_ADVISOR_ORDER.getOrder() + 1);
return interceptor;

Loading…
Cancel
Save