Forums, Documentation & Knowledge Base - ComponentSpace

How to set NameQualifier

By mchammer - 7/13/2021

In IdP-initiated SSO scenario we need to set NameQualifier option. This is the required result:
<saml2:NameID Format="urn:oasis:names:tc:SAML:2.0:nameidformat:persistent" NameQualifier="Foo">XXX</saml2:NameID>

Using NameIDFormat in the configuration file we can set the Format option, but how do we set the NameQualifier to Foo? 
This is our current code:
SAMLServiceProvider.ReceiveSSO(Request, out isInResponseTo, out partnerIdP, out authnContext, out userName, out attributes, out targetUrl);

Thank you.

By ComponentSpace - 7/13/2021

Thanks for the update.