Skip to content

Commit d1d0e67

Browse files
committed
fix: #17175 relax type constraint (6.4 -> 6.5) compatible
Signed-off-by: Maciej Kowalski <[email protected]>
1 parent 52394c1 commit d1d0e67

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

config/src/main/java/org/springframework/security/config/annotation/web/configurers/oauth2/client/OAuth2LoginConfigurer.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -404,11 +404,9 @@ public void init(B http) throws Exception {
404404
oidcAuthorizationCodeAuthenticationProvider.setAuthoritiesMapper(userAuthoritiesMapper);
405405
oidcAuthorizedClientRefreshedEventListener.setAuthoritiesMapper(userAuthoritiesMapper);
406406
}
407-
oidcAuthorizationCodeAuthenticationProvider = this.postProcess(oidcAuthorizationCodeAuthenticationProvider);
408-
http.authenticationProvider(oidcAuthorizationCodeAuthenticationProvider);
407+
http.authenticationProvider(this.postProcess(oidcAuthorizationCodeAuthenticationProvider));
409408

410-
oidcAuthorizedClientRefreshedEventListener = this.postProcess(oidcAuthorizedClientRefreshedEventListener);
411-
registerDelegateApplicationListener(oidcAuthorizedClientRefreshedEventListener);
409+
registerDelegateApplicationListener(this.postProcess(oidcAuthorizationCodeAuthenticationProvider));
412410
configureOidcUserRefreshedEventListener(http);
413411
}
414412
else {

0 commit comments

Comments
 (0)