<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic SAML Auth REST API not generating a token in PAM Self-Hosted Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/saml-auth-rest-api-not-generating-a-token/m-p/1302178#M5497</link>
    <description>&lt;P&gt;I am using SAML Logon REST API in Postman and passing the SAMLResponse in the body parameters hoping to receive a token as mentioned in the CyberArk documentation (https://docs.cyberark.com/Product-Doc/OnlineHelp/PAS/Latest/en/Content/SDK/SAML_%20Authentication_%20Logon_newgen.htm?tocpath=Developer%7CREST%20APIs%7CAuthentication%7CLogon%7C_____2). &lt;/P&gt;&lt;P&gt;But instead of getting a token as the response, I am getting the SAMLRequest URL.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Knowledge Article below explains how to use REST API using SAML auth to generate a token using Postman and PowerShell script, but none of the methods worked for me.&lt;/P&gt;&lt;P&gt;https://community.cyberark.com/s/article/How-to-use-REST-API-SAML-Auth&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anybody experienced this issue or know how to get a token using the SAMLRequest URL received? &lt;/P&gt;</description>
    <pubDate>Tue, 14 Feb 2023 16:59:53 GMT</pubDate>
    <dc:creator>CyberArkAlumni</dc:creator>
    <dc:date>2023-02-14T16:59:53Z</dc:date>
    <item>
      <title>SAML Auth REST API not generating a token</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/saml-auth-rest-api-not-generating-a-token/m-p/1302178#M5497</link>
      <description>&lt;P&gt;I am using SAML Logon REST API in Postman and passing the SAMLResponse in the body parameters hoping to receive a token as mentioned in the CyberArk documentation (https://docs.cyberark.com/Product-Doc/OnlineHelp/PAS/Latest/en/Content/SDK/SAML_%20Authentication_%20Logon_newgen.htm?tocpath=Developer%7CREST%20APIs%7CAuthentication%7CLogon%7C_____2). &lt;/P&gt;&lt;P&gt;But instead of getting a token as the response, I am getting the SAMLRequest URL.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Knowledge Article below explains how to use REST API using SAML auth to generate a token using Postman and PowerShell script, but none of the methods worked for me.&lt;/P&gt;&lt;P&gt;https://community.cyberark.com/s/article/How-to-use-REST-API-SAML-Auth&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anybody experienced this issue or know how to get a token using the SAMLRequest URL received? &lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 16:59:53 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/saml-auth-rest-api-not-generating-a-token/m-p/1302178#M5497</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2023-02-14T16:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: SAML Auth REST API not generating a token</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/saml-auth-rest-api-not-generating-a-token/m-p/1302179#M5498</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Without seeing what you sent to the API endpoint, I can only guess as to what is going wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps you would have better luck trying to grab the SAML response using this script: https://github.com/allynl93/getSAMLResponse-Interactive&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You would then pass that SAML response into the body of the CyberArk SAML logon API as you mentioned you were already doing. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Aside from that, there may be formatting issues with the URL you are using, or you may be hitting the wrong API endpoint. Since you are able to get the SAML response from your IdP I am not sure this next point is quite as valid, but you must enable IdP-initiated workflows for the SAML integration on your PVWA also.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 19:46:03 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/saml-auth-rest-api-not-generating-a-token/m-p/1302179#M5498</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2023-02-14T19:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: SAML Auth REST API not generating a token</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/saml-auth-rest-api-not-generating-a-token/m-p/1302180#M5499</link>
      <description>&lt;P&gt;Hello Jah,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for taking time in replying. Yes, I tried the "PS-SAML-Interactive&lt;/P&gt;&lt;P&gt;.ps1" powershell script that's in the URL you mentioned in your reply to get the SAML Response, but that didn't work in my case. We use SAML + Smart card authentication (for MFA) for logging into PVWA and the PowerShell module clearly says it was not tested for PIV Smart card auth. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So to get the SAML Response, I used F12 key on the keyboard to launch developer tools, opened a web browser and logged in to PVWA as I normally would do (SAML + Smart card) and the SAML Response can be found in the developer tools. I was trying to pass that SAML Response in the Postman to generate a token, but that's not working as I mentioned in my original post. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I figured the SAML Response obtained using the developer tools method wouldn't work to generate a token, because CyberArk treats that as a replay attack and blocks it. I am trying to see if there are any alternate ways to generate the SAML Response without passing the request to CyberArk so that it doesn't treat the request as a replay attack, which can then be used to generate a token. And of course, the method should be for SAML + Smart card auth.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;And to your last point, yes, I verified the formatting and the URL that I am using in Postman, everything looks fine. And I already enabled IdP initiated Sign in on PVWA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 14:05:25 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/saml-auth-rest-api-not-generating-a-token/m-p/1302180#M5499</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2023-02-17T14:05:25Z</dc:date>
    </item>
  </channel>
</rss>

