From 8f42c86a57ff846e55610d69d783491d40c2cec6 Mon Sep 17 00:00:00 2001 From: Marcus Hert Da Coregio Date: Tue, 12 Mar 2024 10:17:45 -0300 Subject: [PATCH] Use AuthorizationInterceptorsOrder for Post Authorize Method Interceptors Closes gh-14720 --- .../method/AuthorizationManagerAfterMethodInterceptor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/springframework/security/authorization/method/AuthorizationManagerAfterMethodInterceptor.java b/core/src/main/java/org/springframework/security/authorization/method/AuthorizationManagerAfterMethodInterceptor.java index 0284710ccf..bfb72e8a27 100644 --- a/core/src/main/java/org/springframework/security/authorization/method/AuthorizationManagerAfterMethodInterceptor.java +++ b/core/src/main/java/org/springframework/security/authorization/method/AuthorizationManagerAfterMethodInterceptor.java @@ -93,7 +93,7 @@ public final class AuthorizationManagerAfterMethodInterceptor PostAuthorizeAuthorizationManager authorizationManager) { AuthorizationManagerAfterMethodInterceptor interceptor = new AuthorizationManagerAfterMethodInterceptor( AuthorizationMethodPointcuts.forAnnotations(PostAuthorize.class), authorizationManager); - interceptor.setOrder(500); + interceptor.setOrder(AuthorizationInterceptorsOrder.POST_AUTHORIZE.getOrder()); return interceptor; }