mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-23 20:42:14 +00:00
Merge branch '5.7.x' into 5.8.x
This commit is contained in:
commit
219faf29d4
@ -276,9 +276,18 @@ public class OAuth2ClientSecurityConfig {
|
||||
.authorizationRequestRepository(this.authorizationRequestRepository())
|
||||
...
|
||||
)
|
||||
);
|
||||
return http.build();
|
||||
.oauth2Login(oauth2 -> oauth2
|
||||
.authorizationEndpoint(endpoint -> endpoint
|
||||
.authorizationRequestRepository(this.authorizationRequestRepository())
|
||||
...
|
||||
)
|
||||
).build();
|
||||
}
|
||||
|
||||
@Bean
|
||||
public AuthorizationRequestRepository<OAuth2AuthorizationRequest> authorizationRequestRepository() {
|
||||
return new CustomOAuth2AuthorizationRequestRepository();
|
||||
}
|
||||
}
|
||||
----
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user