Skip to content

Commit 5a1457b

Browse files
authored
Bump to OpenID Federation draft 43 (#311)
* Rename trust_mark_id to trust_mark_type * Add new informational metadata claims * Bump to conformance tests v5.1.35 * Add version constraint to openid lib
1 parent be9cc74 commit 5a1457b

File tree

22 files changed

+202
-97
lines changed

22 files changed

+202
-97
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ jobs:
210210
runs-on: ubuntu-latest
211211
env:
212212
SUITE_BASE_URL: https://localhost.emobix.co.uk:8443
213-
VERSION: release-v4.1.45
213+
VERSION: release-v5.1.35
214214
steps:
215215
- uses: actions/checkout@v4
216216
with:

CONFORMANCE_TEST.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ Clone the conformance test git repo, build the software and run it.
1414
```bash
1515
git clone https://gitlab.com/openid/conformance-suite.git
1616
cd conformance-suite
17-
# Version 4.1.10 has a bug when building
18-
git checkout release-v4.1.45
17+
git checkout release-v5.1.35
1918
MAVEN_CACHE=./m2 docker-compose -f builder-compose.yml run builder
2019
docker-compose up
2120
```

UPGRADE.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,15 @@ and optionally a port (as in all previous module versions).
5252
- signer algorithm
5353
- entity statement duration
5454
- organization name
55+
- display name
56+
- description
57+
- keywords
5558
- contacts
5659
- logo URI
5760
- policy URI
58-
- homepage URI
61+
- information URI
62+
- homepage URI (renamed to organization_uri in draft-43)
63+
- organization URI
5964

6065
## Major impact changes
6166

config/module_oidc.php.dist

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -375,20 +375,20 @@ $config = [
375375
// 'eyJ...GHg',
376376
],
377377

378-
// (optional) Federation Trust Marks for dynamic fetching. An array of key-value pairs, where key is Trust Mark ID
379-
// and value is Trust Mark Issuer ID, each representing a Trust Mark issued to this entity. Each Trust Mark ID
380-
// in this array will be dynamically fetched from noted Trust Mark Issuer as necessary. If federation caching
381-
// is enabled (recommended), fetched Trust Marks will also be cached until their expiry.
378+
// (optional) Federation Trust Marks for dynamic fetching. An array of key-value pairs, where key is Trust Mark Type
379+
// and value is Trust Mark Issuer ID, each representing a Trust Mark issued to this entity. Each Trust Mark Type
380+
// in this array will be dynamically fetched from the noted Trust Mark Issuer as necessary. If federation
381+
// caching is enabled (recommended), fetched Trust Marks will also be cached until their expiry.
382382
ModuleConfig::OPTION_FEDERATION_DYNAMIC_TRUST_MARKS => [
383-
// 'trust-mark-id' => 'trust-mark-issuer-id',
383+
// 'trust-mark-type' => 'trust-mark-issuer-id',
384384
],
385385

386386
// (optional) Federation participation limit by Trust Marks. This is an array with the following format:
387387
// [
388388
// 'trust-anchor-id' => [
389389
// 'limit-id' => [
390-
// 'trust-mark-id',
391-
// 'trust-mark-id-2',
390+
// 'trust-mark-type',
391+
// 'trust-mark-type-2',
392392
// ],
393393
// ],
394394
// ],
@@ -399,13 +399,13 @@ $config = [
399399
'https://ta.example.org/' => [
400400
// Entities must have (at least) one Trust Mark from the list below.
401401
\SimpleSAML\Module\oidc\Codebooks\LimitsEnum::OneOf->value => [
402-
'trust-mark-id',
403-
'trust-mark-id-2',
402+
'trust-mark-type',
403+
'trust-mark-type-2',
404404
],
405405
// Entities must have all Trust Marks from the list below.
406406
\SimpleSAML\Module\oidc\Codebooks\LimitsEnum::AllOf->value => [
407-
'trust-mark-id-3',
408-
'trust-mark-id-4',
407+
'trust-mark-type-3',
408+
'trust-mark-type-4',
409409
],
410410
],
411411
],
@@ -471,10 +471,21 @@ $config = [
471471
// Common federation entity parameters:
472472
// https://openid.net/specs/openid-federation-1_0.html#name-common-metadata-parameters
473473
ModuleConfig::OPTION_ORGANIZATION_NAME => null,
474+
ModuleConfig::OPTION_DISPLAY_NAME => null,
475+
ModuleConfig::OPTION_DESCRIPTION => null,
476+
ModuleConfig::OPTION_KEYWORDS => [
477+
// 'some-keyword',
478+
],
474479
ModuleConfig::OPTION_CONTACTS => [
475480
// 'John Doe [email protected]',
476481
],
477482
ModuleConfig::OPTION_LOGO_URI => null,
478483
ModuleConfig::OPTION_POLICY_URI => null,
484+
ModuleConfig::OPTION_INFORMATION_URI => null,
485+
ModuleConfig::OPTION_ORGANIZATION_URI => null,
486+
/**
487+
* @deprecated In Draft-43 of OIDFed specification, metadata claim 'homepage_uri' has been renamed to
488+
* 'organization_uri'. Use 'organization_uri' instead.
489+
*/
479490
ModuleConfig::OPTION_HOMEPAGE_URI => null,
480491
];

locales/en/LC_MESSAGES/oidc.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ msgstr ""
491491
msgid "Trust Anchors"
492492
msgstr ""
493493

494-
msgid "Trust Mark ID"
494+
msgid "Trust Mark Type"
495495
msgstr ""
496496

497497
msgid ""

locales/es/LC_MESSAGES/oidc.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ msgstr ""
491491
msgid "Trust Anchors"
492492
msgstr ""
493493

494-
msgid "Trust Mark ID"
494+
msgid "Trust Mark Type"
495495
msgstr ""
496496

497497
msgid ""

locales/fr/LC_MESSAGES/oidc.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ msgstr ""
491491
msgid "Trust Anchors"
492492
msgstr ""
493493

494-
msgid "Trust Mark ID"
494+
msgid "Trust Mark Type"
495495
msgstr ""
496496

497497
msgid ""

locales/hr/LC_MESSAGES/oidc.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ msgstr "IDevi sidra povjerenja"
525525
msgid "Trust Anchors"
526526
msgstr "Sidra povjerenja"
527527

528-
msgid "Trust Mark ID"
528+
msgid "Trust Mark Type"
529529
msgstr "ID oznake povjerenja"
530530

531531
msgid ""

locales/it/LC_MESSAGES/oidc.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ msgstr ""
491491
msgid "Trust Anchors"
492492
msgstr ""
493493

494-
msgid "Trust Mark ID"
494+
msgid "Trust Mark Type"
495495
msgstr ""
496496

497497
msgid ""

locales/nl/LC_MESSAGES/oidc.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ msgstr "Vertrouwde anker-ID's"
459459
msgid "Trust Anchors"
460460
msgstr "Vertrouw op ankers"
461461

462-
msgid "Trust Mark ID"
462+
msgid "Trust Mark Type"
463463
msgstr "Vertrouwensmerk-ID"
464464

465465
msgid "Trust Mark validation passed (there were no warnings or errors during validation)."

0 commit comments

Comments
 (0)