You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/manual/src/docs/asciidoc/_includes/servlet/oauth2/oauth2-login.adoc
+98-1Lines changed: 98 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -421,7 +421,10 @@ class OAuth2LoginConfig {
421
421
422
422
If you are not able to use Spring Boot 2.x and would like to configure one of the pre-defined providers in `CommonOAuth2Provider` (for example, Google), apply the following configuration:
423
423
424
-
[source,java]
424
+
.OAuth2 Login Configuration
425
+
====
426
+
.Java
427
+
[source,java,role="primary"]
425
428
----
426
429
@Configuration
427
430
public class OAuth2LoginConfig {
@@ -465,6 +468,33 @@ public class OAuth2LoginConfig {
Alternatively, you may register a `GrantedAuthoritiesMapper` `@Bean` to have it automatically applied to the configuration, as shown in the following example:
@@ -1040,6 +1127,16 @@ class OAuth2LoginSecurityConfig : WebSecurityConfigurerAdapter() {
0 commit comments