Good catch. Two additional comments: first, the saml:Attribute
elements need NameFormat XML attributes in addition to Name, and
second, multi-valued entity attributes are a must.
Other than that, good work! :-)
Tom
http://code.google.com/p/simplesamlphp/issues/detail?id=278
This is very timely since we've started using entity attributes in the
InCommon Federation in a big way. I know some people who will be able
to use this.
Thanks,
Tom
> --
> You received this message because you are subscribed to the Google Groups
> "simpleSAMLphp" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/simplesamlphp/-/-URkGAwqX3QJ.
>
> To post to this group, send email to simple...@googlegroups.com.
> To unsubscribe from this group, send email to
> simplesamlph...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/simplesamlphp?hl=en.
http://code.google.com/p/simplesamlphp/issues/detail?id=394
Thanks! :-)
Tom
> --
> You received this message because you are subscribed to the Google Groups
> "simpleSAMLphp" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/simplesamlphp/-/5ILVYV3d7jAJ.
Cheers,
Tom
> --
> You received this message because you are subscribed to the Google Groups
> "simpleSAMLphp" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/simplesamlphp/-/iWwQVpC06KgJ.
Now let's pop up a level. As a consumer of metadata, what should SSP
do with entity attributes and user interface elements? I'll just list
a few of my favorites and then let others chime in.
- User interface elements in IdP metadata are used for the discovery
and error pages at the SP
- User interface elements in SP metadata are used for the login,
consent, and error pages at the IdP
- Entity attributes in IdP metadata are used for identity assurance
qualifiers (http://wiki.oasis-open.org/security/SAML2IDAssuranceProfile)
The latter overlaps with support for AuthnContext at the SP.
Basically, the SP checks metadata to see if the IdP is authorized to
assert the qualifier in the SAML response.
Tom
--
You received this message because you are subscribed to the Google Groups "simpleSAMLphp" group.
To view this discussion on the web visit https://groups.google.com/d/msg/simplesamlphp/-/5ILVYV3d7jAJ.
To post to this group, send email to simple...@googlegroups.com.
To unsubscribe from this group, send email to simplesamlph...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/simplesamlphp?hl=en.
<simplesaml.svn.patch>
Thank you for working on this!
I haven't had a chance to look at the patch in detail yet, but there is
one change I'd like to see. For "simple" elements (i.e. those that are
just strings/urls or a list of language=>string), we don't usually add
separate classes. Just store them as a string (for single-valued
elements), an array of strings (for multi-valued elements) or an array
of language=>string for localized strings.
The extractLocalizedStrings(), extractStrings() and addStrings()
functions from SAML2_Utils may be useful for this.
This should reduce the amout of code needed to work with those
elements, as well as make it easier to read.
Best regards,
Olav Morken
UNINETT / Feide
I agree with both of these.
I have now looked at the patch in more detail, and noticed some more
changes I'd like to see:
- The patch should be against the latest code in subversion. This is
noticeable where you call extract(Localized)Strings, since the
parameters of these functions have been changed. (It now accepts a
localname and namespace URI, instead of an XPath expression.)
- The names of attributes in the SAML2_XML_*-classes should match the
names and upper/lowercase letters used in the specification. E.g.
"Width" in SAML2_XML_mdui_Logo should be "width".
- I'd also like to see some short documentation (preferably with
examples :) for these new structures. This should probably be a
separate document that we can link to from the locations where we add
support for metadata extensions. (I see that you have added support
for it in saml20-idp-hosted. At some point we should probably also
add support for it in the SP.)
Other than that, this patch looks good.
Are you sure that you are at the right branch? It should be committed
to trunk:
http://code.google.com/p/simplesamlphp/source/browse/trunk/lib/SAML2/Utils.php#502
I am trying to switch from SURFfederatie to SURFconext.
Old: https://wayf.surfnet.nl/federate/metadata/saml20
New: https://engine.surfconext.nl/authentication/proxy/idps-metadata
The SURFconext metadata only seems to contains mdui elements, and no
OrganizationDisplayName etc any more.
The metadata as processed by lib/SimpleSAML/Metadata/SAMLParser.php
doesn't contains no mdui elements.
So, is there any progress on this patch? ;-)
Dick
--
Dick Visser
System & Networking Engineer
TERENA Secretariat
Singel 468 D, 1017 AW Amsterdam
The Netherlands
> The metadata as processed by lib/SimpleSAML/Metadata/SAMLParser.php
> doesn't contains no mdui elements.
There are probably a couple of reasons this might not be parsed as you would expect:
The mdui elements are almost all intended to appear within a mdui:UIInfo container element, which isn't being done in that new file.
More importantly, the wrong namespace is being used (urn:oasis:names:tc:SAML:2.0:metadata:ui instead of urn:oasis:names:tc:SAML:metadata:ui).
-- Ian