Digital-Identity-Labs / shibkit-meta_meta

Utilities for friendly handling of Shibboleth/SAML2 metadata. Easily download and parse metadata XML into Ruby objects.
Apache License 2.0
6 stars 3 forks source link

SWAMID has metadata URL identical to federation's name URI, so... #22

Closed binaryape closed 12 years ago

binaryape commented 12 years ago

This causes the #by_uri method to fail to find one of them. In fact at the moment the source overwrites the federation in the URI index. It was probably wrong of me to assume that URIs for entities, federations and source URLs would be unique to each object.

We could make the #by_uri and #[] only work for entities (which would be disappointing) or append a meaningless param to conflicting download URLs to force them to be unique.

binaryape commented 12 years ago

Or maybe just remove sources from the #by_uri index - after all they aren't really the "product" that MetaMeta works with, they're just the source of that data.