Can the MDA add entity attributes?

Ian Young ian at iay.org.uk
Tue Sep 10 15:13:59 UTC 2024



> On 30 Aug 2024, at 15:45, Wessel, Keith via users <users at shibboleth.net> wrote:
> 
> I think the answer is yes, but only if I do some complicated custom coding to make it happen. But I'm hoping I'm missing something. Can the MDA consume metadata and add entity attributes to specific entities before outputting it?


Sorry, I missed this when it came in so this reply is rather delayed. I hope it's still relevant.

In 0.9.x and earlier, this could be a bit tricky, as you imply. I used XSL transforms in many cases, but that's not for everyone. So, MDA 0.10.0 added a stage specifically for this use case. From the release notes:

https://shibboleth.atlassian.net/wiki/spaces/MA1/pages/1495859647/Version+0.10.x
> MDA-56 <https://issues.shibboleth.net/jira/browse/MDA-56>: A new stage EntityAttributeAddingStage has been added to add entity attributes to the metadata for SAML entities. This is configured using attributeName, attributeNameFormat and attributeValue properties, with attributeName and attributeNameFormat defaulting to the values required to add an entity category attribute. The stage is based on a new Container framework which attempts to generate reasonably well formatted XML for nested container elements, and handles the insertion of the required parent containers (Extensions, EntityAttributes, Attribute) when they are not already present.

So, it's a lot more straightforward now. If you need more information, let me know more about what you're trying to do and I'll think about adding to the examples.

Cheers,

    -- Ian




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20240910/498f93e5/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: favicon-update.ico
Type: image/vnd.microsoft.icon
Size: 162098 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/users/attachments/20240910/498f93e5/attachment.ico>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4151 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/users/attachments/20240910/498f93e5/attachment.p7s>


More information about the users mailing list