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/src/docs/asciidoc/guides/how-to-social-login.adoc
-13
Original file line number
Diff line number
Diff line change
@@ -121,23 +121,10 @@ If you configured a `UserDetailsService` when xref:{docs-dir}/getting-started.ad
121
121
The https://github.com/spring-projects/spring-authorization-server/tree/{github-ref}/samples#demo-sample[demo authorization server sample^] demonstrates advanced configuration options for federating identity providers.
122
122
Select from the following use cases to see an example of each:
123
123
124
-
* I want to <<advanced-use-cases-automatically-redirect>>
125
124
* I want to <<advanced-use-cases-capture-users>>
126
125
* I want to <<advanced-use-cases-map-claims>>
127
126
* I want to <<advanced-use-cases-configurer>>
128
127
129
-
[[advanced-use-cases-automatically-redirect]]
130
-
=== Automatically Redirect to a Provider
131
-
132
-
The following example `AuthenticationEntryPoint` uses a query parameter as a hint from the client to indicate which provider to automatically redirect to for authentication.
133
-
For example, assuming Google is configured as a social login provider with a `registrationId` of `google`, a request to `/oauth2/authorize?idp=google&...` will redirect an unauthenticated user to `/oauth2/authorization/google` which will initiate logging in with Google:
Copy file name to clipboardExpand all lines: samples/demo-authorizationserver/src/main/java/sample/federation/FederatedIdentityAuthenticationEntryPoint.java
0 commit comments