Additional attributes on ContactPerson Element#79
Conversation
|
@tdiscuit could you please add a unit test? |
|
@relaxnow I've added unit tests and I also noticed I missed pulling out attributes on the contact person element if XML is supplied, so I added that in. |
|
Thanks so much @tdiscuit! I was wondering... would it make sense to have this as a new class, extending |
|
Anytime @jaimeperez! But I still have more work to do since I'll be submitting a PR for SimpleSAMLphp as well ;) ... once I hash that bit out. I was thinking the same thing, but I went with this route since I am doing this for Sirtfi now, but there may be other trust frameworks that I don't know about that require additional attributes on other contact types. So by keeping it generic, it becomes very easy to implement. Of course I am open to discussion around that. |
|
I'm not aware of any other trust frameworks that use extensions to the |
|
Merged. thanks! |
|
Thank you guys! |
In order for federation participants to claim compliance for Sirtfi, they need to define the security contact for their organization. The contactType of "other" is used, but Sirtfi requires additional attributes,
xmlns:remdandremd:contactType, on the ContactPerson element (shown here).Currently, this isn't possible, but this PR adds an associative array, $ContactPersonAttributes, which will add attributes to the ContactPerson element.