Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Improve heuristic: it can't be Shibboleth 1.3 if it supports SAML 2.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
iay committed Jan 2, 2014
1 parent 8cfd7ba commit 2eedc03
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions mdx/uk/statistics.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -1636,10 +1636,16 @@
-->
<xsl:template name="list.shibboleth.1.3.entities">
<xsl:param name="entities"/>
<!-- remove everything that says it is something other than Shibboleth -->
<!--
Remove everything that says it is something other than Shibboleth, or which includes
a SAML 2.0 token in any of its role descriptors' protocolSupportEnumerations.
-->
<xsl:variable name="entities.1"
select="set:difference($entities,
$entities[md:Extensions/ukfedlabel:Software[@name != 'Shibboleth']])"/>
$entities[
md:Extensions/ukfedlabel:Software[@name != 'Shibboleth'] |
md:*[contains(@protocolSupportEnumeration, 'urn:oasis:names:tc:SAML:2.0:protocol')]
])"/>
<!-- remove things that look like Shibboleth 2.x -->
<xsl:variable name="entities.2"
select="set:difference($entities.1,
Expand Down Expand Up @@ -1788,6 +1794,8 @@
md:Extensions/ukfedlabel:Software[@name='Shibboleth'][@version = '1.3'] |
md:IDPSSODescriptor/md:SingleSignOnService[contains(@Location, '-idp/SSO')] |
md:SPSSODescriptor/md:AssertionConsumerService[contains(@Location, 'Shibboleth.sso')]
][
not(md:*[contains(@protocolSupportEnumeration, 'urn:oasis:names:tc:SAML:2.0:protocol')])
]"/>
<xsl:variable name="entities.shib.13.out"
select="set:difference($entities.shib.13.in, $entities.shib.13)"/>
Expand Down

0 comments on commit 2eedc03

Please sign in to comment.