Skip to content

Commit fde6089

Browse files
committed
CH-211 CH-212 add missing client scopes
1 parent 0c6ec2b commit fde6089

1 file changed

Lines changed: 79 additions & 0 deletions

File tree

applications/accounts/deploy/resources/realm.json

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,75 @@
106106
{{- end }}
107107
}
108108
},
109+
"clientScopeMappings": {
110+
"account": [
111+
{
112+
"client": "account-console",
113+
"roles": [
114+
"manage-account",
115+
"view-groups"
116+
]
117+
}
118+
]
119+
},
109120
"clients": [
121+
{
122+
"id": "18893fbb-8252-4aaa-bc9b-60799ceb9932",
123+
"clientId": "account-console",
124+
"name": "${client_account-console}",
125+
"rootUrl": "${authBaseUrl}",
126+
"baseUrl": {{ printf "/realms/%s/account" .Values.namespace | quote }},
127+
"surrogateAuthRequired": false,
128+
"enabled": true,
129+
"alwaysDisplayInConsole": false,
130+
"clientAuthenticatorType": "client-secret",
131+
"redirectUris": [
132+
{{ printf "/realms/%s/account/*" .Values.namespace | quote }}
133+
],
134+
"webOrigins": [],
135+
"notBefore": 0,
136+
"bearerOnly": false,
137+
"consentRequired": false,
138+
"standardFlowEnabled": true,
139+
"implicitFlowEnabled": false,
140+
"directAccessGrantsEnabled": false,
141+
"serviceAccountsEnabled": false,
142+
"publicClient": true,
143+
"frontchannelLogout": false,
144+
"protocol": "openid-connect",
145+
"attributes": {
146+
"realm_client": "false",
147+
"post.logout.redirect.uris": "+",
148+
"pkce.code.challenge.method": "S256"
149+
},
150+
"authenticationFlowBindingOverrides": {},
151+
"fullScopeAllowed": false,
152+
"nodeReRegistrationTimeout": 0,
153+
"protocolMappers": [
154+
{
155+
"id": "9a68ec2d-943d-49cb-9fdd-cd821d606210",
156+
"name": "audience resolve",
157+
"protocol": "openid-connect",
158+
"protocolMapper": "oidc-audience-resolve-mapper",
159+
"consentRequired": false,
160+
"config": {}
161+
}
162+
],
163+
"defaultClientScopes": [
164+
"service_account",
165+
"web-origins",
166+
"acr",
167+
"address",
168+
"administrator-scope",
169+
"phone",
170+
"profile",
171+
"roles",
172+
"microprofile-jwt",
173+
"basic",
174+
"email"
175+
],
176+
"optionalClientScopes": []
177+
},
110178
{
111179
"id": "9a6a2560-c6be-4493-8bd5-3fdc4522d82b",
112180
"clientId": {{ .Values.apps.accounts.client.id | quote }},
@@ -279,6 +347,17 @@
279347
"claim.name": "groups",
280348
"jsonType.label": "String"
281349
}
350+
},
351+
{
352+
"id": "f99f57ac-a765-4aba-9b45-9425beec0a9f",
353+
"name": "sub",
354+
"protocol": "openid-connect",
355+
"protocolMapper": "oidc-sub-mapper",
356+
"consentRequired": false,
357+
"config": {
358+
"introspection.token.claim": "true",
359+
"access.token.claim": "true"
360+
}
282361
}
283362
]
284363
},

0 commit comments

Comments
 (0)