mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-09 14:02:56 +09:00
fix(apps/kubernetes): switch audience mapper to included.client.audience
Self-review fix: the KeycloakClientScope rendered for the per-cluster audience used `included.custom.audience` (raw string), but the project convention — set in `packages/system/keycloak-configure/templates/configure-kk.yaml` for the legacy global `kubernetes-client` scope — is `included.client.audience` (refers to a clientId in the same realm). Both keys make Keycloak emit the audience claim with the same value in our setup, but the `client.audience` form is the idiomatic one when the audience IS a registered client in the realm. Signed-off-by: Ivan Okhotnikov <ivan.okhotnikov@aenix.io>
This commit is contained in:
1 parent
d13e2c586f
commit
5fcb40f07e
1 file changed
+1
-1
@@ -45,7 +45,7 @@ spec:
|
||||
protocol: openid-connect
|
||||
protocolMapper: "oidc-audience-mapper"
|
||||
config:
|
||||
"included.custom.audience": {{ $clientId | quote }}
|
||||
"included.client.audience": {{ $clientId | quote }}
|
||||
"id.token.claim": "true"
|
||||
"access.token.claim": "true"
|
||||
"introspection.token.claim": "true"
|
||||
|
||||
Reference in new issue
Block a user