From 4cd89b584f23299b10f34011699c3ab2d7da0bf6 Mon Sep 17 00:00:00 2001 From: Joe Grandja Date: Thu, 20 Feb 2020 21:25:17 -0500 Subject: [PATCH] Polish gh-5184 --- .../security/config/http/AuthenticationConfigBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/src/main/java/org/springframework/security/config/http/AuthenticationConfigBuilder.java b/config/src/main/java/org/springframework/security/config/http/AuthenticationConfigBuilder.java index c2c7f53691..eedf87ad53 100644 --- a/config/src/main/java/org/springframework/security/config/http/AuthenticationConfigBuilder.java +++ b/config/src/main/java/org/springframework/security/config/http/AuthenticationConfigBuilder.java @@ -936,7 +936,7 @@ final class AuthenticationConfigBuilder { } if (authorizationCodeGrantFilter != null) { - filters.add(new OrderDecorator(authorizationRequestRedirectFilter, OAUTH2_AUTHORIZATION_REQUEST_FILTER)); + filters.add(new OrderDecorator(authorizationRequestRedirectFilter, OAUTH2_AUTHORIZATION_REQUEST_FILTER.getOrder()+1)); filters.add(new OrderDecorator(authorizationCodeGrantFilter, OAUTH2_AUTHORIZATION_CODE_GRANT_FILTER)); }