@@ -3829,31 +3829,11 @@ public final class OAuth2ClientSpec {
3829
3829
3830
3830
private ServerAuthorizationRequestRepository <OAuth2AuthorizationRequest > authorizationRequestRepository ;
3831
3831
3832
- private ServerRedirectStrategy authorizationRedirectStrategy ;
3833
-
3834
3832
private ServerOAuth2AuthorizationRequestResolver authorizationRequestResolver ;
3835
3833
3836
- private OAuth2ClientSpec () {
3837
- }
3838
-
3839
- /**
3840
- * Sets the resolver used for resolving {@link OAuth2AuthorizationRequest}'s.
3841
- * @param authorizationRequestResolver the resolver used for resolving
3842
- * {@link OAuth2AuthorizationRequest}'s
3843
- * @return the {@link OAuth2ClientSpec} for further configuration
3844
- * @since 6.1
3845
- */
3846
- public OAuth2ClientSpec authorizationRequestResolver (
3847
- ServerOAuth2AuthorizationRequestResolver authorizationRequestResolver ) {
3848
- this .authorizationRequestResolver = authorizationRequestResolver ;
3849
- return this ;
3850
- }
3834
+ private ServerRedirectStrategy authorizationRedirectStrategy ;
3851
3835
3852
- private OAuth2AuthorizationRequestRedirectWebFilter getRedirectWebFilter () {
3853
- if (this .authorizationRequestResolver != null ) {
3854
- return new OAuth2AuthorizationRequestRedirectWebFilter (this .authorizationRequestResolver );
3855
- }
3856
- return new OAuth2AuthorizationRequestRedirectWebFilter (getClientRegistrationRepository ());
3836
+ private OAuth2ClientSpec () {
3857
3837
}
3858
3838
3859
3839
/**
@@ -3945,6 +3925,26 @@ private ServerAuthorizationRequestRepository<OAuth2AuthorizationRequest> getAuth
3945
3925
return this .authorizationRequestRepository ;
3946
3926
}
3947
3927
3928
+ /**
3929
+ * Sets the resolver used for resolving {@link OAuth2AuthorizationRequest}'s.
3930
+ * @param authorizationRequestResolver the resolver used for resolving
3931
+ * {@link OAuth2AuthorizationRequest}'s
3932
+ * @return the {@link OAuth2ClientSpec} to customize
3933
+ * @since 6.1
3934
+ */
3935
+ public OAuth2ClientSpec authorizationRequestResolver (
3936
+ ServerOAuth2AuthorizationRequestResolver authorizationRequestResolver ) {
3937
+ this .authorizationRequestResolver = authorizationRequestResolver ;
3938
+ return this ;
3939
+ }
3940
+
3941
+ private OAuth2AuthorizationRequestRedirectWebFilter getRedirectWebFilter () {
3942
+ if (this .authorizationRequestResolver != null ) {
3943
+ return new OAuth2AuthorizationRequestRedirectWebFilter (this .authorizationRequestResolver );
3944
+ }
3945
+ return new OAuth2AuthorizationRequestRedirectWebFilter (getClientRegistrationRepository ());
3946
+ }
3947
+
3948
3948
/**
3949
3949
* Sets the redirect strategy for Authorization Endpoint redirect URI.
3950
3950
* @param authorizationRedirectStrategy the redirect strategy
@@ -3971,7 +3971,6 @@ public ServerHttpSecurity and() {
3971
3971
}
3972
3972
3973
3973
protected void configure (ServerHttpSecurity http ) {
3974
- ReactiveClientRegistrationRepository clientRegistrationRepository = getClientRegistrationRepository ();
3975
3974
ServerOAuth2AuthorizedClientRepository authorizedClientRepository = getAuthorizedClientRepository ();
3976
3975
ServerAuthenticationConverter authenticationConverter = getAuthenticationConverter ();
3977
3976
ReactiveAuthenticationManager authenticationManager = getAuthenticationManager ();
0 commit comments