Skip to content

Commit 725b3b5

Browse files
committed
Fix OAuth2AuthorizationCodeGrantWebFilter works w/ /{action/
Issue: gh-5856
1 parent 79828d4 commit 725b3b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/web/server/OAuth2AuthorizationCodeGrantWebFilter.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public OAuth2AuthorizationCodeGrantWebFilter(
124124
Assert.notNull(authorizedClientRepository, "authorizedClientRepository cannot be null");
125125
this.authenticationManager = authenticationManager;
126126
this.authorizedClientRepository = authorizedClientRepository;
127-
this.requiresAuthenticationMatcher = new PathPatternParserServerWebExchangeMatcher("/authorize/oauth2/code/{registrationId}");
127+
this.requiresAuthenticationMatcher = new PathPatternParserServerWebExchangeMatcher("/{action}/oauth2/code/{registrationId}");
128128
this.authenticationConverter = authenticationConverter;
129129
this.authenticationSuccessHandler = new RedirectServerAuthenticationSuccessHandler();
130130
this.authenticationFailureHandler = (webFilterExchange, exception) -> Mono.error(exception);

0 commit comments

Comments
 (0)