File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
config/src/main/java/org/springframework/security/config/web/server Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -677,6 +677,24 @@ private X509Spec() {
677
677
}
678
678
}
679
679
680
+ /**
681
+ * Configures authentication support using an OAuth 2.0 and/or OpenID Connect 1.0 Provider.
682
+ *
683
+ * <pre class="code">
684
+ * @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
+ */
680
698
public OAuth2LoginSpec oauth2Login () {
681
699
if (this .oauth2Login == null ) {
682
700
this .oauth2Login = new OAuth2LoginSpec ();
You can’t perform that action at this time.
0 commit comments