Commit e9ef806
committed
🐛(helm) fix OIDC authentication with standard scopes
Replace custom OIDC scopes with standard OpenID Connect scopes to fix
Keycloak authentication flow.
Changes:
- Replace OIDC_RP_SCOPES from "openid email given_name usual_name"
to "openid email profile"
- Update OIDC_USERINFO_FULLNAME_FIELDS from "given_name,usual_name"
to "given_name,family_name"
- Add OIDC_REDIRECT_ALLOWED_HOSTS to allow Keycloak callback redirects
The previous configuration used custom scopes (given_name, usual_name)
that were not configured in Keycloak, causing authentication to fail
with "invalid_scope" error. Using the standard "profile" scope includes
all necessary user claims (given_name, family_name, etc.) and works
with default Keycloak configuration.
This fixes the issue where users were redirected to /home after
authentication instead of staying logged in, because the OIDC flow
was failing and session cookies were not being set properly.1 parent 8f8d467 commit e9ef806
File tree
2 files changed
+4
-4
lines changed- src/helm/env.d
- dev
- feature
2 files changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
0 commit comments