Skip to content

Commit fbf6d22

Browse files
committed
Add JavaDoc to reactive oauth2Login
1 parent e8dd132 commit fbf6d22

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

config/src/main/java/org/springframework/security/config/web/server/ServerHttpSecurity.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -677,6 +677,24 @@ private X509Spec() {
677677
}
678678
}
679679

680+
/**
681+
* Configures authentication support using an OAuth 2.0 and/or OpenID Connect 1.0 Provider.
682+
*
683+
* <pre class="code">
684+
* &#064;Bean
685+
* public SecurityWebFilterChain springSecurityFilterChain(ServerHttpSecurity http) {
686+
* http
687+
* // ...
688+
* .oauth2Login()
689+
* .authenticationConverter(authenticationConverter)
690+
* .authenticationManager(manager);
691+
* return http.build();
692+
* }
693+
* </pre>
694+
*
695+
*
696+
* @return the {@link OAuth2LoginSpec} to customize
697+
*/
680698
public OAuth2LoginSpec oauth2Login() {
681699
if (this.oauth2Login == null) {
682700
this.oauth2Login = new OAuth2LoginSpec();

0 commit comments

Comments
 (0)