Is it possible to read the Issuer value from a SAMLRequest message within the SAML Response Script Editor?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Is it possible to read the Issuer value from a SAMLRequest message within the SAML Response Script Editor?

L3 Networker

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.

3 REPLIES 3

L7 Applicator

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 !

 

 

L3 Networker

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.

L7 Applicator

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 !

  • 77 Views
  • 3 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!