Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Add UK-specific check for IdPs suppporting REFEDS R&S entity category
Similar to the check for SPs, we ensure that any IdP that supports the category will have a valid MDRPS in metadata. See ukf/ukf-meta#281 for details
Alex Stuart
committed
Nov 30, 2020
1 parent
6efc0a4
commit b199617
Showing
7 changed files
with
101 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Tests for UK-specific check for R and S | ||
|
||
If the entity supports R&S, it must have a RegistrationPolicy | ||
|
||
Other checks ensure that the RegistrationPolicy is valid | ||
|
||
Run tests like this: | ||
|
||
`for i in *.xml; do echo "Test: $i ==="; xsltproc ../../../mdx/uk/check_uk_rands.xsl $i; done` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<EntityDescriptor xmlns="urn:oasis:names:tc:SAML:2.0:metadata" | ||
xmlns:mdattr="urn:oasis:names:tc:SAML:metadata:attribute" | ||
xmlns:mdrpi="urn:oasis:names:tc:SAML:metadata:rpi" | ||
xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"> | ||
<Extensions> | ||
<mdrpi:RegistrationInfo registrationAuthority="http://ukfederation.org.uk" | ||
registrationInstant="2012-07-13T11:19:55Z"> | ||
<mdrpi:RegistrationPolicy xml:lang="en" | ||
>http://ukfederation.org.uk/doc/mdrps-20130902</mdrpi:RegistrationPolicy> | ||
</mdrpi:RegistrationInfo> | ||
<mdattr:EntityAttributes> | ||
<saml:Attribute NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri" Name="http://macedir.org/entity-category-support"> | ||
<saml:AttributeValue>http://refeds.org/category/research-and-scholarship</saml:AttributeValue> | ||
</saml:Attribute> | ||
</mdattr:EntityAttributes> | ||
</Extensions> | ||
</EntityDescriptor> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<EntityDescriptor xmlns="urn:oasis:names:tc:SAML:2.0:metadata" | ||
xmlns:mdattr="urn:oasis:names:tc:SAML:metadata:attribute" | ||
xmlns:mdrpi="urn:oasis:names:tc:SAML:metadata:rpi" | ||
xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"> | ||
<Extensions> | ||
<mdrpi:RegistrationInfo registrationAuthority="http://ukfederation.org.uk" | ||
registrationInstant="2012-07-13T11:19:55Z"> | ||
</mdrpi:RegistrationInfo> | ||
<mdattr:EntityAttributes> | ||
<saml:Attribute NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri" Name="http://macedir.org/entity-category-support"> | ||
<saml:AttributeValue>http://refeds.org/category/research-and-scholarship</saml:AttributeValue> | ||
</saml:Attribute> | ||
</mdattr:EntityAttributes> | ||
</Extensions> | ||
</EntityDescriptor> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<EntityDescriptor xmlns="urn:oasis:names:tc:SAML:2.0:metadata" | ||
xmlns:mdattr="urn:oasis:names:tc:SAML:metadata:attribute" | ||
xmlns:mdrpi="urn:oasis:names:tc:SAML:metadata:rpi" | ||
xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"> | ||
<Extensions> | ||
<mdrpi:RegistrationInfo registrationAuthority="http://ukfederation.org.uk" | ||
registrationInstant="2012-07-13T11:19:55Z"> | ||
<mdrpi:RegistrationPolicy xml:lang="en" | ||
>http://ukfederation.org.uk/doc/mdrps-20130902</mdrpi:RegistrationPolicy> | ||
</mdrpi:RegistrationInfo> | ||
</Extensions> | ||
</EntityDescriptor> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<EntityDescriptor xmlns="urn:oasis:names:tc:SAML:2.0:metadata" | ||
xmlns:mdattr="urn:oasis:names:tc:SAML:metadata:attribute" | ||
xmlns:mdrpi="urn:oasis:names:tc:SAML:metadata:rpi" | ||
xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<EntityDescriptor xmlns="urn:oasis:names:tc:SAML:2.0:metadata" | ||
xmlns:mdattr="urn:oasis:names:tc:SAML:metadata:attribute" | ||
xmlns:mdrpi="urn:oasis:names:tc:SAML:metadata:rpi" | ||
xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"> | ||
<Extensions> | ||
<mdrpi:RegistrationInfo registrationAuthority="http://ukfederation.org.uk" | ||
registrationInstant="2012-07-13T11:19:55Z"> | ||
<mdrpi:RegistrationPolicy xml:lang="en" | ||
>http://ukfederation.org.uk/doc/mdrps-20130902</mdrpi:RegistrationPolicy> | ||
</mdrpi:RegistrationInfo> | ||
<mdattr:EntityAttributes> | ||
<saml:Attribute NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri" Name="http://macedir.org/entity-category"> | ||
<saml:AttributeValue>https://refeds.org/sirtfi</saml:AttributeValue> | ||
</saml:Attribute> | ||
</mdattr:EntityAttributes> | ||
</Extensions> | ||
</EntityDescriptor> |