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 support for IdPs asserting CoCo v2 entity category support
See ukf/ukf-meta#359 for details
Alex Stuart
committed
Apr 26, 2023
1 parent
ae2b5df
commit b45569e
Showing
3 changed files
with
63 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
check_coco_v2_support.xsl | ||
Checking ruleset containing rules associated with the REFEDS | ||
Data Protection Code of Conduct Entity Category category support, see: | ||
https://refeds.org/category/code-of-conduct/v2 | ||
This ruleset reflects v2.0 published 28th March 2022 | ||
--> | ||
<xsl:stylesheet version="1.0" | ||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | ||
xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" | ||
xmlns:mdattr="urn:oasis:names:tc:SAML:metadata:attribute" | ||
xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" | ||
xmlns="urn:oasis:names:tc:SAML:2.0:metadata"> | ||
|
||
<!-- | ||
Common support functions. | ||
--> | ||
<xsl:import href="check_framework.xsl"/> | ||
|
||
<!-- | ||
Entity support category applies only to identity providers. | ||
--> | ||
<xsl:template match="md:EntityDescriptor | ||
[ | ||
md:Extensions/mdattr:EntityAttributes/saml:Attribute | ||
[@NameFormat='urn:oasis:names:tc:SAML:2.0:attrname-format:uri'] | ||
[@Name='http://macedir.org/entity-category-support'] | ||
/saml:AttributeValue[.='https://refeds.org/category/code-of-conduct/v2'] | ||
] | ||
[not(md:IDPSSODescriptor)]"> | ||
<xsl:call-template name="error"> | ||
<xsl:with-param name="m">REFEDS Data Protection Code of Conduct support only applies to identity provider entities</xsl:with-param> | ||
</xsl:call-template> | ||
</xsl:template> | ||
|
||
</xsl:stylesheet> |
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