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
@@ -244,6 +245,7 @@ Support for social login providers:
244
245
- Google
245
246
- Facebook
246
247
- Apple
248
+
- Keycloak
247
249
- Custom providers
248
250
249
251
Configuration example:
@@ -271,6 +273,36 @@ spring:
271
273
For public OAuth you will need a public hostname and HTTPS enabled. You can use ngrok or Cloudflare tunnels to create a public hostname and tunnel to your local machine during development. You can then use the ngrok hostname in your Google, Facebook and Keycloak developer console configuration.
272
274
273
275
276
+
#### **SSO OIDC with Keycloak**
277
+
To enable SSO:
278
+
1. Create OIDC client in Keycloak admin console.
279
+
2. Update your `application-docker-keycloak.yml`:
280
+
```yaml
281
+
spring:
282
+
security:
283
+
oauth2:
284
+
client:
285
+
registration:
286
+
keycloak:
287
+
client-id: ${DS_SPRING_USER_KEYCLOAK_CLIENT_ID} # Keycloak client ID for OAuth2
288
+
client-secret: ${DS_SPRING_USER_KEYCLOAK_CLIENT_SECRET} # Keycloak client secret for OAuth2
289
+
authorization-grant-type: authorization_code # Authorization grant type for OAuth2
0 commit comments