mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-29 15:22:15 +00:00
Add JavaDoc to reactive oauth2Login
This commit is contained in:
parent
e8dd1325fd
commit
fbf6d22343
@ -677,6 +677,24 @@ public class ServerHttpSecurity {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Configures authentication support using an OAuth 2.0 and/or OpenID Connect 1.0 Provider.
|
||||||
|
*
|
||||||
|
* <pre class="code">
|
||||||
|
* @Bean
|
||||||
|
* public SecurityWebFilterChain springSecurityFilterChain(ServerHttpSecurity http) {
|
||||||
|
* http
|
||||||
|
* // ...
|
||||||
|
* .oauth2Login()
|
||||||
|
* .authenticationConverter(authenticationConverter)
|
||||||
|
* .authenticationManager(manager);
|
||||||
|
* return http.build();
|
||||||
|
* }
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* @return the {@link OAuth2LoginSpec} to customize
|
||||||
|
*/
|
||||||
public OAuth2LoginSpec oauth2Login() {
|
public OAuth2LoginSpec oauth2Login() {
|
||||||
if (this.oauth2Login == null) {
|
if (this.oauth2Login == null) {
|
||||||
this.oauth2Login = new OAuth2LoginSpec();
|
this.oauth2Login = new OAuth2LoginSpec();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user