mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-05-31 01:02:14 +00:00
Merge branch '5.8.x' into 6.0.x
This commit is contained in:
commit
cdac708051
@ -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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user