<?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 Working Python example of SAML Logon API with Azure AD in Workforce Identity Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/workforce-identity-discussions/working-python-example-of-saml-logon-api-with-azure-ad/m-p/1419091#M2371</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I have been scouring the internet looking for a working Python example of how to hit the SAML Logon API ( &lt;A alt="https://docs.cyberark.com/pam-self-hosted/latest/en/content/sdk/saml_%20authentication_%20logon_newgen.htm" href="https://docs.cyberark.com/pam-self-hosted/latest/en/content/sdk/saml_%20authentication_%20logon_newgen.htm" target="_blank"&gt;SAML logon | CyberArk Docs&lt;/A&gt; ) when our CyberArk instance is hosted in Azure AD. The part I'm having trouble with is getting the SAML Response from Azure AD. I'm trying to make what I think is the right API call, but I'm met with an "Admin approval needed" message from Azure AD so I'm wondering if we need to add more access to our CyberArk app in Azure AD. However, I thought I would ask here in case anyone has a working Python example of doing this, and I can try it on my side and see if I get the same "admin approval needed" message. Thank you!&lt;/P&gt;</description>
    <pubDate>Thu, 27 Mar 2025 14:47:44 GMT</pubDate>
    <dc:creator>CyberArkAlumni</dc:creator>
    <dc:date>2025-03-27T14:47:44Z</dc:date>
    <item>
      <title>Working Python example of SAML Logon API with Azure AD</title>
      <link>https://live.paloaltonetworks.com/t5/workforce-identity-discussions/working-python-example-of-saml-logon-api-with-azure-ad/m-p/1419091#M2371</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I have been scouring the internet looking for a working Python example of how to hit the SAML Logon API ( &lt;A alt="https://docs.cyberark.com/pam-self-hosted/latest/en/content/sdk/saml_%20authentication_%20logon_newgen.htm" href="https://docs.cyberark.com/pam-self-hosted/latest/en/content/sdk/saml_%20authentication_%20logon_newgen.htm" target="_blank"&gt;SAML logon | CyberArk Docs&lt;/A&gt; ) when our CyberArk instance is hosted in Azure AD. The part I'm having trouble with is getting the SAML Response from Azure AD. I'm trying to make what I think is the right API call, but I'm met with an "Admin approval needed" message from Azure AD so I'm wondering if we need to add more access to our CyberArk app in Azure AD. However, I thought I would ask here in case anyone has a working Python example of doing this, and I can try it on my side and see if I get the same "admin approval needed" message. Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 14:47:44 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/workforce-identity-discussions/working-python-example-of-saml-logon-api-with-azure-ad/m-p/1419091#M2371</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2025-03-27T14:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: Working Python example of SAML Logon API with Azure AD</title>
      <link>https://live.paloaltonetworks.com/t5/workforce-identity-discussions/working-python-example-of-saml-logon-api-with-azure-ad/m-p/1419092#M2372</link>
      <description>&lt;P&gt;Hi @Kent Yeabower​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes this error message ""Admin approval needed" from Azure AD suggests that Azure AD application does not have sufficient permissions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you are trying from Python, you cannot directly get the SAML Response from Azure AD via API unless your Azure AD app is configured for programmatic authentication.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The SAML response is usually returned via a browser based login flow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please try using OAuth 2.0 instead of using SAML which will give you an access token. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 05:00:07 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/workforce-identity-discussions/working-python-example-of-saml-logon-api-with-azure-ad/m-p/1419092#M2372</guid>
      <dc:creator>M.Vora780263</dc:creator>
      <dc:date>2025-03-28T05:00:07Z</dc:date>
    </item>
  </channel>
</rss>

