Subject: Remove namespace from issuer
Date: 2019-02-15 18:52:26
From: ppudhota@affinitiv.com
Source: remove-namespace-issuer
----------------------------------------------------------------------

Hi Team,

one of our client is requesting us to remove the namespace from issuer tag. Please could you please advise how to remove from authnrequest xml?

Sample code

     AuthnRequest authnRequest = new AuthnRequest();
                authnRequest.Destination = idpURL;
                authnRequest.Issuer = new Issuer("Connectiv1", null, null, null, null);
                authnRequest.Issuer.Format = null;

                authnRequest.ForceAuthn = false;
                authnRequest.NameIdPolicy = new NameIdPolicy("urn:oasis:names:tc:SAML:2.0:nameid-format:unspecified", null, true);
                authnRequest.ProtocolBinding = SamlBindingUri.HttpPost;
                authnRequest.AssertionConsumerServiceUrl = assertionConsumerServiceURL;
                authnRequest.Redirect(this.Response, idpURL, relayState, x509Certificate.PrivateKey);

Output:

    
 123 
 
 

----------------------------------------------------------------------

Note: This question has been asked on the Q&A forum of Thang Dang's fraudulent ComponentPro brand
If you purchased anything from ComponentPro, you have been scammed. Contact the payment processor
who sold you the license and ask for your money back.

Back to ComponentPro Q&A Forum Index