Repository navigation
Commit acf2163
committed
Set a claim's single or multiple values on the claim, not the scope
A private scope's are_multiple_claim_values_allowed made every claim
the scope lists a list, of all the attribute's values even when there
is one, and made each of them a list under every other scope too, since
the factory gathered them into one list for the whole OP. A scope
carrying a single-valued claim next to multi-valued ones
(eduperson_principal_name next to eduperson_affiliation, issue #360)
could not be configured.
The shape is now the claim's own: 'multi_valued' => true on its entry
in the translation table releases it as a list, even of one value, and
false, the default, as its first value. It is the same in the ID token,
the UserInfo response, the JWT access token and the introspection
response, whichever scope releases it. A member of a json claim reads
it from its own entry. The OpenID Connect standard claims and the
identity claims stay single values.
The scope setting is gone: a private scope which still sets it to a
true value is refused when the configuration is read, naming its
claims, rather than having its lists silently released as strings. A
multi_valued value which is not a boolean, or true on a json claim, on
a standard claim or a member of one, or on an identity claim, is
refused too, on the effective table, which the configuration overview
reports on the table's row. The access token check for groups, roles
and entitlements now points at the key, and an entry holding the key
alone is not advertised in claims_supported. The overview no longer
shows the scope setting; the configuration guide, the dist config and
the upgrade guide describe the change.
Assisted-by: Claude Code (claude-opus-5-5, implementation & unit tests)
Assisted-by: OpenAI Codex (gpt-6.2-sol, xhigh review)
Assisted-by: Google Antigravity (gemini-4-argon-high, review)1 parent 1dc46d0 commit acf2163
15 files changed
Lines changed: 755 additions & 169 deletions
File tree
- config
- docs
- src
- Admin/ConfigOverview
- Factories
- Utils
- templates/config/includes
- tests/unit/src
- Admin/ConfigOverview
- Controllers/OAuth2
- Factories
- Utils
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
378 | 378 | | |
379 | 379 | | |
380 | 380 | | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
381 | 385 | | |
382 | 386 | | |
383 | 387 | | |
| |||
388 | 392 | | |
389 | 393 | | |
390 | 394 | | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
391 | 400 | | |
392 | 401 | | |
393 | 402 | | |
| |||
482 | 491 | | |
483 | 492 | | |
484 | 493 | | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
485 | 498 | | |
486 | 499 | | |
487 | 500 | | |
| |||
493 | 506 | | |
494 | 507 | | |
495 | 508 | | |
496 | | - | |
497 | 509 | | |
498 | 510 | | |
499 | 511 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1215 | 1215 | | |
1216 | 1216 | | |
1217 | 1217 | | |
1218 | | - | |
1219 | 1218 | | |
1220 | 1219 | | |
1221 | 1220 | | |
1222 | 1221 | | |
1223 | 1222 | | |
1224 | 1223 | | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
1225 | 1229 | | |
1226 | 1230 | | |
1227 | 1231 | | |
| |||
1279 | 1283 | | |
1280 | 1284 | | |
1281 | 1285 | | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
1282 | 1327 | | |
1283 | 1328 | | |
1284 | 1329 | | |
| |||
1327 | 1372 | | |
1328 | 1373 | | |
1329 | 1374 | | |
1330 | | - | |
1331 | | - | |
1332 | | - | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
1333 | 1378 | | |
1334 | 1379 | | |
1335 | 1380 | | |
| |||
1374 | 1419 | | |
1375 | 1420 | | |
1376 | 1421 | | |
1377 | | - | |
1378 | | - | |
| 1422 | + | |
| 1423 | + | |
1379 | 1424 | | |
1380 | 1425 | | |
1381 | 1426 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
171 | | - | |
| 170 | + | |
| 171 | + | |
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
188 | | - | |
| 187 | + | |
189 | 188 | | |
190 | 189 | | |
191 | 190 | | |
| |||
596 | 595 | | |
597 | 596 | | |
598 | 597 | | |
599 | | - | |
600 | | - | |
601 | | - | |
602 | | - | |
603 | | - | |
604 | | - | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
605 | 619 | | |
606 | 620 | | |
607 | 621 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | 44 | | |
47 | 45 | | |
48 | 46 | | |
| |||
1543 | 1541 | | |
1544 | 1542 | | |
1545 | 1543 | | |
1546 | | - | |
1547 | | - | |
| 1544 | + | |
1548 | 1545 | | |
1549 | 1546 | | |
1550 | 1547 | | |
| |||
1585 | 1582 | | |
1586 | 1583 | | |
1587 | 1584 | | |
1588 | | - | |
1589 | | - | |
1590 | 1585 | | |
1591 | 1586 | | |
1592 | 1587 | | |
| |||
0 commit comments