Expected Behavior
OpenSamlMetadataResolver should serialize NameID formats associated with an SP.
Current Behavior
OpenSamlMetadataResolver does not serialize any NameID formats.
Context
It is typical for SP descriptors to include a set of supported NameID formats. OpenSamlMetadataResolver does not even attempt to serialize a default set of them, let alone user-provided ones. This may be partly due to RelyingPartyRegistration not allowing users to define them. At a minimum, OpenSamlMetadataResolver should attempt to include the formats in the urn:oasis:names:tc:SAML:1.1:nameid-format namespace. It might also be helpful for OpenSamlMetadataResolver not to be marked final so users can customize the serizliation.
Comment From: jzheaux
Related to #9115
Comment From: ctmay4
I am having an issue where NameID is not in the SAML response. I wonder if this is the reason? The error I get is misleading:
[subject_not_found] Assertion [_a79ccbf3-6309-4f18-a132-2a4c91653a19] is missing a subject
However when you dig into the code and review the response the reason is the NameID is not returned. Did you ever find a workaround? I see the NameId changes in #9115 are in the 5.7.x branch which is no released yet.
Comment From: jzheaux
Closed in a17dfb8456cf3a517d44cfcccdaa7a1d2ae6121f