Namespace for Metadata KeyInfo

0
I'm using the following code to add the keyinfo: ComponentPro.Saml2.Metadata.KeyDescriptor mdKey = new ComponentPro.Saml2.Metadata.KeyDescriptor(); ComponentPro.Saml2.Metadata.KeyDescriptor mdKey2 = new ComponentPro.Saml2.Metadata.KeyDescriptor(); mdKey.Use = "signing"; KeyInfoX509Data keyData = new KeyInfoX509Data(cert); // Create KeyInfo. KeyInfo keyInfo = new KeyInfo(); keyInfo.AddClause(keyData); mdKey.KeyInfo = keyInfo.GetXml(); ssoDescriptor.KeyDescriptors.Add(mdKey); mdKey2 = new ComponentPro.Saml2.Metadata.KeyDescriptor( ); mdKey2.Use = "encryption"; KeyInfoX509Data keyData2 = new KeyInfoX509Data(cert); // Create KeyInfo. keyInfo = new KeyInfo(); keyInfo.AddClause(keyData2); mdKey2.KeyInfo = keyInfo.GetXml(); ssoDescriptor.KeyDescriptors.Add(mdKey2); A vendor has the need to have me send the namespace in the following manner: The code above generates the metadata in the following manner: How do I change it so that it add the "ds:" to the metadata? I can't just do a search/replace since I'm signing it, and there's no obvious method to change it. I'm using ComponentPro.SAML v7.2.40.234. Thanks
edited 3/15/2021 10:18:43 PM
asked 3/15/2021 10:17:00 PM
add a comment

0 Answers

Your Answer

Not the answer you're looking for? Browse other questions tagged saml or ask your own question.