<?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 Re: Authenticate to EPM API via SAML? Looking for some working example code. in Endpoint Privilege Manager (EPM) Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/authenticate-to-epm-api-via-saml-looking-for-some-working/m-p/1424795#M9224</link>
    <description>&lt;P&gt;Hi @Ryan Kuczer​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes you can use the browser.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please note token has a time limit. So you must use it almost immediately after capturing it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see the following video &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A alt="https://youtu.be/pNQUc5WKKWQ?si=ja8xInHNLba5t9Jf" href="https://youtu.be/pNQUc5WKKWQ?si=ja8xInHNLba5t9Jf" target="_blank"&gt;https://youtu.be/pNQUc5WKKWQ?si=ja8xInHNLba5t9Jf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps !&lt;/P&gt;</description>
    <pubDate>Tue, 14 Oct 2025 23:33:48 GMT</pubDate>
    <dc:creator>M.Vora780263</dc:creator>
    <dc:date>2025-10-14T23:33:48Z</dc:date>
    <item>
      <title>Authenticate to EPM API via SAML? Looking for some working example code.</title>
      <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/authenticate-to-epm-api-via-saml-looking-for-some-working/m-p/1424788#M9217</link>
      <description>&lt;P&gt;I have been trying to authenticate to the EPM API via SAML (CyberArk doc link: &lt;A alt="https://docs.cyberark.com/epm/latest/en/content/webservices/samlauthentication.htm" href="https://docs.cyberark.com/epm/latest/en/content/webservices/samlauthentication.htm" target="_blank"&gt;SAML authentication | CyberArk Docs&lt;/A&gt;). I believe I am following all of the steps correctly, right URL, parameters, HTTP method, etc. But for some reason no matter what I keep receiving an error. Does anyone have a working postman collection/code that achieves this?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Sep 2025 15:47:28 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/authenticate-to-epm-api-via-saml-looking-for-some-working/m-p/1424788#M9217</guid>
      <dc:creator>RKuczer</dc:creator>
      <dc:date>2025-09-29T15:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: Authenticate to EPM API via SAML? Looking for some working example code.</title>
      <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/authenticate-to-epm-api-via-saml-looking-for-some-working/m-p/1424789#M9218</link>
      <description>&lt;P&gt;Hi @Ryan Kuczer​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the exact error you’re receiving, and more importantly, how exactly are you generating the &lt;B&gt;SAMLResponse&lt;/B&gt; used in the API call body?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eviatar&lt;/P&gt;</description>
      <pubDate>Mon, 29 Sep 2025 17:20:31 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/authenticate-to-epm-api-via-saml-looking-for-some-working/m-p/1424789#M9218</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2025-09-29T17:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: Authenticate to EPM API via SAML? Looking for some working example code.</title>
      <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/authenticate-to-epm-api-via-saml-looking-for-some-working/m-p/1424790#M9219</link>
      <description>&lt;P&gt;Hi @Eviatar David​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for getting back to me so quickly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Exact Error: &lt;/B&gt;{"StatusCode":401,"Error":"Authentication&amp;nbsp;is&amp;nbsp;required&amp;nbsp;and&amp;nbsp;has&amp;nbsp;failed&amp;nbsp;or&amp;nbsp;has&amp;nbsp;not&amp;nbsp;yet&amp;nbsp;been&amp;nbsp;provided"}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To produce the &lt;B&gt;SAMLResponse, &lt;/B&gt;I am using browser dev tools to monitor incoming data after signing in with SAML:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Navigating to my EPM's sign in page with SAML (&lt;A alt="https://login.epm.cyberark.com/SAML/StaplesEPM" href="https://login.epm.cyberark.com/SAML/StaplesEPM" target="_blank"&gt;https://login.epm.cyberark.com/SAML/&lt;/A&gt;REDACTED)&lt;/LI&gt;&lt;LI&gt;Perform SAML sign in with Microsoft with MFA&lt;/LI&gt;&lt;LI&gt;Looking for the POST request to my EPM's Assertion Consumer Service (&lt;A alt="https://login.epm.cyberark.com/SAML/acsu" href="https://login.epm.cyberark.com/SAML/acsu" target="_blank"&gt;https://login.epm.cyberark.com/SAML/acsu&lt;/A&gt;)&lt;/LI&gt;&lt;LI&gt;Grabbing the &lt;B&gt;SAMLResponse&lt;/B&gt; token (in BASE64)&lt;/LI&gt;&lt;LI&gt;Then with the SAMLResponse create a POST request to &lt;I&gt;https://login.epm.cyberark.com/SAML/Logon &lt;/I&gt;in Postman&lt;UL&gt;&lt;LI&gt;Header is, Content-Type: &lt;I&gt;application/x-www-form-urlencoded&lt;/I&gt;&lt;/LI&gt;&lt;LI&gt;Body (in x-www-form-urlencoded) has 2 key value pairs. 1. Key - SAMLResponse 2. Value - &lt;I&gt;SAMLResponse token (base64)&lt;/I&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;I&gt;Let me know if any other information is needed please. Thank you again for getting back to me&lt;/I&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Sep 2025 17:44:35 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/authenticate-to-epm-api-via-saml-looking-for-some-working/m-p/1424790#M9219</guid>
      <dc:creator>RKuczer</dc:creator>
      <dc:date>2025-09-29T17:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Authenticate to EPM API via SAML? Looking for some working example code.</title>
      <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/authenticate-to-epm-api-via-saml-looking-for-some-working/m-p/1424791#M9220</link>
      <description>&lt;P&gt;Hi @Ryan Kuczer​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This error usually indicates an issue with your &lt;B&gt;SAMLResponse&lt;/B&gt;, most likely due to the way it was captured from the browser.&lt;/P&gt;&lt;P&gt;If you are using Azure as your IdP, there is an external PowerShell script that can help you obtain the SAMLResponse directly from Azure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please note that this is &lt;B&gt;NOT an official CyberArk solution&lt;/B&gt; and is neither developed nor supported by CyberArk.&lt;/P&gt;&lt;P&gt;&lt;A alt="https://github.com/allynl93/getSAMLResponse-Interactive/tree/main/PowerShell%20New-SAMLInteractive%20Module" href="https://github.com/allynl93/getSAMLResponse-Interactive/tree/main/PowerShell%20New-SAMLInteractive%20Module" target="_blank"&gt;getSAMLResponse-Interactive/PowerShell New-SAMLInteractive Module at main · allynl93/getSAMLResponse-Interactive · GitHub&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;let me know once you’ve tested it and if you were able to authenticate using this method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eviatar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Sep 2025 18:22:17 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/authenticate-to-epm-api-via-saml-looking-for-some-working/m-p/1424791#M9220</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2025-09-29T18:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Authenticate to EPM API via SAML? Looking for some working example code.</title>
      <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/authenticate-to-epm-api-via-saml-looking-for-some-working/m-p/1424792#M9221</link>
      <description>&lt;P&gt;Hi @Eviatar David​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Running into an issue with this method as it is automatically logging me in the embedded browser with my workstation's account that is not configured to access the EPM app. Looking for a workaround at the moment will update you.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2025 14:20:06 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/authenticate-to-epm-api-via-saml-looking-for-some-working/m-p/1424792#M9221</guid>
      <dc:creator>RKuczer</dc:creator>
      <dc:date>2025-09-30T14:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Authenticate to EPM API via SAML? Looking for some working example code.</title>
      <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/authenticate-to-epm-api-via-saml-looking-for-some-working/m-p/1424793#M9222</link>
      <description>&lt;P&gt;HI @Ryan Kuczer​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It suggests that when a PowerShell session or any browser control running on Windows hits a resource configured for IdP, it attempts to pass your current Windows credentials.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please try to use Use the -DisableAuthPrompt flag or If -DisableAuthPrompt doesn't work, you may need to trick the IdP's login flow to bypass integrated Windows authentication. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps !&lt;/P&gt;</description>
      <pubDate>Thu, 02 Oct 2025 02:03:41 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/authenticate-to-epm-api-via-saml-looking-for-some-working/m-p/1424793#M9222</guid>
      <dc:creator>M.Vora780263</dc:creator>
      <dc:date>2025-10-02T02:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: Authenticate to EPM API via SAML? Looking for some working example code.</title>
      <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/authenticate-to-epm-api-via-saml-looking-for-some-working/m-p/1424794#M9223</link>
      <description>&lt;P&gt;@Malhar Vora​&amp;nbsp;- Thank you that does help, however that flag mentioned (-DisableAuthprompt) does not work for the referenced Powershell module in the GitHub Repo as it is a little older. I must download the project from source code and alter it to work with EPM instead of PVWA and build it again. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I instead use browser tools to do this instead? I did this initially, but it did not seem to work with the response included from my brower.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Oct 2025 15:08:06 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/authenticate-to-epm-api-via-saml-looking-for-some-working/m-p/1424794#M9223</guid>
      <dc:creator>RKuczer</dc:creator>
      <dc:date>2025-10-14T15:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Authenticate to EPM API via SAML? Looking for some working example code.</title>
      <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/authenticate-to-epm-api-via-saml-looking-for-some-working/m-p/1424795#M9224</link>
      <description>&lt;P&gt;Hi @Ryan Kuczer​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes you can use the browser.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please note token has a time limit. So you must use it almost immediately after capturing it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see the following video &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A alt="https://youtu.be/pNQUc5WKKWQ?si=ja8xInHNLba5t9Jf" href="https://youtu.be/pNQUc5WKKWQ?si=ja8xInHNLba5t9Jf" target="_blank"&gt;https://youtu.be/pNQUc5WKKWQ?si=ja8xInHNLba5t9Jf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps !&lt;/P&gt;</description>
      <pubDate>Tue, 14 Oct 2025 23:33:48 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/authenticate-to-epm-api-via-saml-looking-for-some-working/m-p/1424795#M9224</guid>
      <dc:creator>M.Vora780263</dc:creator>
      <dc:date>2025-10-14T23:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Authenticate to EPM API via SAML? Looking for some working example code.</title>
      <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/authenticate-to-epm-api-via-saml-looking-for-some-working/m-p/1424796#M9225</link>
      <description>&lt;P&gt;Hi @Malhar Vora​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate you getting back to me, in the video Joe uses the same GetSamlResponse.exe that is configured for the PVWA. I am trying to initiate SAML auth with CyberArk EPM however, requiring me to rewrite the source code of the project. When I have time I will get to it. Just to recap, so far I have tried using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;browser dev tools (SAML Response in base64), response = 401 &lt;/LI&gt;&lt;LI&gt;PowerShell module (getSamlresponse), doesn't work as I need to disable auto login as the account signed in on my machine is not configured with EPM access. Since it's an older PowerShell module it doesn't support disabling the auth prompt&lt;/LI&gt;&lt;LI&gt;Using the modern webview2 exe doesn't work as it is configured for the PVWA so it doesn't capture anything logging into EPM. Hence needing to rewrite the source code and rebuilding the application.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate all the help Malhar!&lt;/P&gt;</description>
      <pubDate>Wed, 15 Oct 2025 17:43:26 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/authenticate-to-epm-api-via-saml-looking-for-some-working/m-p/1424796#M9225</guid>
      <dc:creator>RKuczer</dc:creator>
      <dc:date>2025-10-15T17:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Authenticate to EPM API via SAML? Looking for some working example code.</title>
      <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/authenticate-to-epm-api-via-saml-looking-for-some-working/m-p/1424797#M9226</link>
      <description>&lt;P&gt;Hi @Ryan Kuczer​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is the IDP using Windows Integrated Authentication (Kerberos/NTLM)? If so, the browser automatically sends your Windows credentials without prompting, and i dont think modify the script will help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you tell me what happens when the form opens? Does it:&lt;/P&gt;&lt;P&gt;-Automatically log you in without showing a login form?&lt;/P&gt;&lt;P&gt;-Show a login form but with fields pre-filled?&lt;/P&gt;&lt;P&gt;-Something else?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eviatar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Oct 2025 18:27:06 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/authenticate-to-epm-api-via-saml-looking-for-some-working/m-p/1424797#M9226</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2025-10-15T18:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Authenticate to EPM API via SAML? Looking for some working example code.</title>
      <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/authenticate-to-epm-api-via-saml-looking-for-some-working/m-p/1424798#M9227</link>
      <description>&lt;P&gt;Hi @Eviatar David​&amp;nbsp;, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PowerShell module - Automatically logs me in with the same credentials currently signed in on my machine then denies access. Which does not have access to the CyberArk EPM application.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;New Webview2 Exe - Lets me login with the account of my choosing. However it is configured to only capture the response from the PVWA SAML hence the quote in the GitHub Repo: &lt;I&gt;You can also download the pre-built binary. This is built specifically with the CyberArk API in mind, for other apps you will need to download from source and build.&lt;/I&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Oct 2025 19:04:26 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/authenticate-to-epm-api-via-saml-looking-for-some-working/m-p/1424798#M9227</guid>
      <dc:creator>RKuczer</dc:creator>
      <dc:date>2025-10-15T19:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Authenticate to EPM API via SAML? Looking for some working example code.</title>
      <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/authenticate-to-epm-api-via-saml-looking-for-some-working/m-p/1424799#M9228</link>
      <description>&lt;P&gt;It does not show a login for with pre-filled fields, I have not option to stop the process or cancel it.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Oct 2025 19:05:06 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/authenticate-to-epm-api-via-saml-looking-for-some-working/m-p/1424799#M9228</guid>
      <dc:creator>RKuczer</dc:creator>
      <dc:date>2025-10-15T19:05:06Z</dc:date>
    </item>
  </channel>
</rss>

