Rest API, Authenticate via SAML

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

Welcome Idira to LIVEcommunity!

Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.

Meet Idira

Rest API, Authenticate via SAML

L3 Networker

For SAML authentication using rest AP, the documentation gives following info. Anyone know from where to obtain the SAMLResponse if we do not have any access to Enterprise applications configured inside iDP :

 

For SAML authentication you need to send the header "Content-Type" with value set to "application/x-www-form-urlencoded", alongside the following keys:

• "SAMLResponse" and its value (Required)

• “apiUse” set to “true” (Required)

• “concurrentSession” set to "true" or "false" (Optional)

• “secureMode” set to "true" or "false" (Optional)

The keys should be encoded in key-value tuples separated by '&'.

Each key and value should be separated by '=’.

4 REPLIES 4

L4 Transporter

Not sure I fully understand the use-case, but this page describes how to retrieve the SAML response for an Identity App

Get a SAML assertion for a configured app | CyberArk Docs

L3 Networker

I doubt because I haven't tried. Hence, I don't think SAML is supported for REST API Call in self hosted

L7 Applicator

Hi @R K​ 

 

You can get SAML response from the browser using Developer tool or using Proxy tools like Fiddler.

 

If you're entirely blocked from the IdP you cannot generate the SAMLResponse yourself, it should be come from the IdP.

L4 Transporter

A few years ago I had the exact same challenge and used the following PowerShell module to achieve it: https://github.com/allynl93/getSAMLResponse-Interactive

 

You use this module in a PowerShell script to launch an embedded browser window where you enter your authentication details, and if the login succeeds, you should get a string back which you can use as the "SAMLResponse" value in the Logon call to PVWA.

  • 217 Views
  • 4 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!