- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
09-06-2024 08:05 AM
The AssertionConsumerServiceURL global variable appears to function this way, it will be populated with the AssertionConsumerServiceURL value contained within the SP AuthnRequest message. I see there is a Issuer global variable but this appears to only populate the Issuer value of from the IdP configuration rather than the value delivered by the SP in the AuthnRequest.
09-07-2024 04:51 PM
Hi @Chris Kubiak
I think in the SAML Response Script Editor, you cannot directly access the Issuer value from the SAMLRequest using the built-in Issuer global variable, as that variable is intended to reflect the Idp’s Issuer rather than the SP’s Issuer from the SAMLRequest.
In order to retrieve the Issuer value from the AuthnRequest sent by the SP, you will likely need to parse the raw SAMLRequest yourself, especially since the SAML scripting environment may not expose all of the values in the AuthnRequest directly.
You might need to base64 decode and then deflate the SAMLRequest, then extract the Issuer from the decoded XML.
Hope it helps !
09-10-2024 06:49 AM
So is there an existing function\variable to read in the raw SAMLRequest message? Reviewing the published docs and the script help available in the editor I'm not seeing an option for this. I can certainly take a stab at processing the raw message to extract an individual element, but I need the initial raw value to begin.
09-13-2024 03:53 AM
Hi @Chris Kubiak
If you have flexibility in your environment, you can use external SAML libraries to handle parsing the request outside of your script. For example, integrating a SAML library at the application level would allow you to decode, decompress, and extract values from the SAMLRequest.
I suggest to raise a Support case
and clarify it.
Hope it helps !
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!

