- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2022 09:40 AM
Hi,
your post is very helpful for me but I'm not able to set an attribute to the root element "saml2p:AuthnRequest"
what I need to do is to set the attribute AttributeConsumingServiceIndex in the SAML request as per example below:
<saml2p:AuthnRequest
xmlns:saml2p="urn:oasis:names:tc:SAML:2.0:protocol"
AssertionConsumerServiceURL="https://myinstance/navpage.do"
Destination="https://myinstance/samlsso"
ForceAuthn="true"
AttributeConsumingServiceIndex = 0
ID="SNC0967b242014a1e019a13a899f66a1281"
IsPassive="false"
IssueInstant="yyyy-mm-ddThh:mm:ss.mmmZ" ProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" ProviderName="https://myinstance/navpage.do"
Version="2.0"
>
Using getChildNodes() I'm not able to set any attribute related to the root node element saml2p:AuthnRequest
Do you have any suggestion?
Thank you in advance