Adding an entity attribute to every entity from a provider

Ian Young ian at
Wed Apr 17 09:26:03 EDT 2019

> On 16 Apr 2019, at 22:46, Wessel, Keith <kwessel at <mailto:kwessel at>> wrote:
> I want to add an entity attribute to every entity from the InCommon MDQ preview to know that it came from InCommon or eduGAIN.

You should find that every entity you access via the MDQ preview already includes a couple of different metadata elements that are relevant:
    <mdrpi:RegistrationInfo xmlns:mdrpi="urn:oasis:names:tc:SAML:metadata:rpi" registrationAuthority=" <>"/>
    <mdattr:EntityAttributes xmlns:mdattr="urn:oasis:names:tc:SAML:metadata:attribute">
      <saml:Attribute xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" Name=" <>" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
        <saml:AttributeValue></saml:AttributeValue> <>

The first is the EntityDescriptor/Extensions/RegistrationInfo/@registrationAuthority. Anything "from" (i.e., registered by) InCommon will have one registrationAuthority value, and anything "from" eduGAIN would have some other value, but the specific value will differ depending on which original registrar was involved.

The other thing you can see in the above example is that there's already an entity attribute which specifically indicates that an entity was registered by InCommon, which sounds like exactly what you want. To a first approximation, certainly right now, if that's missing then the metadata is "from" eduGAIN.

    -- Ian

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3870 bytes
Desc: not available
URL: <>

More information about the users mailing list