Browse Source

Polish Fix package tangles

Issue #7699 #7840
Joe Grandja 5 năm trước cách đây
mục cha
commit
4e2f1988f2

+ 1 - 2
oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/web/reactive/function/client/ServerOAuth2AuthorizedClientExchangeFilterFunction.java

@@ -521,8 +521,7 @@ public final class ServerOAuth2AuthorizedClientExchangeFilterFunction implements
 			this.clientRegistrationRepository = clientRegistrationRepository;
 			this.authorizedClientRepository = authorizedClientRepository;
 			this.authorizationSuccessHandler = (authorizedClient, principal, attributes) ->
-					authorizedClientRepository.saveAuthorizedClient(authorizedClient, principal,
-							(ServerWebExchange) attributes.get(ServerWebExchange.class.getName()));
+					authorizedClientRepository.saveAuthorizedClient(authorizedClient, principal, null);
 			this.authorizationFailureHandler = authorizationFailureHandler;
 		}