Skip to content

Commit 3c119ec

Browse files
committed
Added DiscoveryName and multiple logo, keywords
See OpenConext/OpenConext-manage#457
1 parent be74aeb commit 3c119ec

File tree

2 files changed

+36
-16
lines changed

2 files changed

+36
-16
lines changed

roles/manage/files/metadata_templates/saml20_idp.template.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"OrganizationName:en": "",
1111
"SingleSignOnService:0:Binding": "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect",
1212
"SingleSignOnService:0:Location": "",
13-
"coin:disable_scoping": true
13+
"coin:disable_scoping": true,
14+
"DiscoveryName:0:en": ""
1415
},
1516
"autoRefresh": {
1617
"enabled": true,

roles/manage/templates/metadata_configuration/saml20_idp.schema.json.j2

Lines changed: 34 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -272,19 +272,6 @@
272272
"type": "string",
273273
"info": "The name of the authority that can register a service provider or identity provider."
274274
},
275-
"logo:0:url": {
276-
"type": "string",
277-
"format": "url",
278-
"info": "Enter the URL to the logo used for this service. e.g. https://static.example-logo.nl/media/sp/logo.png."
279-
},
280-
"logo:0:width": {
281-
"type": "number",
282-
"info": "The width of the logo found at logo:0:url in pixels."
283-
},
284-
"logo:0:height": {
285-
"type": "number",
286-
"info": "The height of the logo found at logo:0:url in pixels."
287-
},
288275
"redirect.sign": {
289276
"type": "boolean",
290277
"info": "Whether authentication requests to this IdP will be signed by Engineblock."
@@ -436,6 +423,33 @@
436423
"sibblingIndependent": true,
437424
"info": "From the pull down, select the type of contact."
438425
},
426+
"^logo:([0-9]{1}):url$": {
427+
"type": "string",
428+
"format": "url",
429+
"multiplicity": 9,
430+
"sibblingIndependent": true,
431+
"info": "Enter the URL to the logo used for this service. e.g. https://static.example-logo.nl/media/sp/logo.png."
432+
},
433+
"^logo:([0-9]{1}):width$": {
434+
"type": "number",
435+
"multiplicity": 9,
436+
"sibblingIndependent": true,
437+
"info": "The width of the logo found at logo:x:url in pixels."
438+
},
439+
"^logo:([0-9]{1}):height$": {
440+
"type": "number",
441+
"multiplicity": 9,
442+
"sibblingIndependent": true,
443+
"info": "The height of the logo found at logo:x:url in pixels."
444+
},
445+
{% for lang in supported_language_codes.split(',') %}
446+
"^DiscoveryName:([0-9]{1}):{{ lang }}$": {
447+
"type": "string",
448+
"multiplicity": 9,
449+
"sibblingIndependent": false,
450+
"info": "The discovery name(s) of the Identity Provider as displayed in applications."
451+
},
452+
{% endfor %}
439453
"^OrganizationName:({{ supported_language_codes | replace(',','|') }})$": {
440454
"type": "string"
441455
},
@@ -476,10 +490,14 @@
476490
"multiplicity": 10,
477491
"info": "The URL to the a SAML protocol endpoint at an IdP that a client can contact to obtain a SAML authentication assertion for use at an SP. e.g. https://idp.example.org/idp/profile/SAML2/Redirect/SSO"
478492
},
479-
"^keywords:({{ supported_language_codes | replace(',','|') }})$": {
493+
{% for lang in supported_language_codes.split(',') %}
494+
"^keywords:([0-9]{1}):{{ lang }}": {
480495
"type": "string",
496+
"multiplicity": 10,
481497
"info": "This field defines searchable words in the WAYF dialogue for this Identity Provider."
482498
},
499+
{% endfor %}
500+
483501
"^shibmd:scope:([0-9]{1}):allowed$": {
484502
"type": "string",
485503
"multiplicity": 10,
@@ -495,7 +513,8 @@
495513
"name:en",
496514
"OrganizationName:en",
497515
"SingleSignOnService:0:Binding",
498-
"SingleSignOnService:0:Location"
516+
"SingleSignOnService:0:Location",
517+
"DiscoveryName:0:en"
499518
],
500519
"additionalProperties": false
501520
}

0 commit comments

Comments
 (0)