Merge branch '6.0.x'

This commit is contained in:
Josh Cummings 2023-05-18 11:08:11 -06:00
commit 0e3ee89902
No known key found for this signature in database
GPG Key ID: A306A51F43B8E5A5
1 changed files with 11 additions and 2 deletions

View File

@ -302,9 +302,18 @@ public class OAuth2ClientSecurityConfig {
.authorizationRequestRepository(this.authorizationRequestRepository()) .authorizationRequestRepository(this.authorizationRequestRepository())
... ...
) )
); .oauth2Login(oauth2 -> oauth2
return http.build(); .authorizationEndpoint(endpoint -> endpoint
.authorizationRequestRepository(this.authorizationRequestRepository())
...
)
).build();
} }
@Bean
public AuthorizationRequestRepository<OAuth2AuthorizationRequest> authorizationRequestRepository() {
return new CustomOAuth2AuthorizationRequestRepository();
}
} }
---- ----