Add JavaDoc to reactive oauth2Login

This commit is contained in:
Eleftheria Stein 2019-07-18 08:44:31 -04:00
parent e8dd1325fd
commit fbf6d22343
1 changed files with 18 additions and 0 deletions

View File

@ -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">
* &#064;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() {
if (this.oauth2Login == null) {
this.oauth2Login = new OAuth2LoginSpec();