<?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>article How to login to Swagger using SAML authentication in PAM Self-Hosted Articles</title>
    <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-articles/how-to-login-to-swagger-using-saml-authentication/ta-p/1427853</link>
    <description>Since v12.5 of the portal (or PVWA), authentication via Swagger has changed. Now users need to log into Swagger through the Auth API on the Swagger page. This describes how to use SAML authentication to login to Swagger.

&lt;H3&gt;Steps&lt;/H3&gt;
&lt;U&gt;&lt;SPAN style="font-size: 20px;"&gt;&lt;STRONG&gt;Pre-requisites:-&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/U&gt;&lt;BR /&gt;&amp;nbsp;
&lt;OL&gt;&lt;LI style="margin-bottom: 11px;margin-left: 8px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;IdP initiated SSO must be set in the &amp;lt;appSettings&amp;gt; section of the &amp;lt;Drive letter&amp;gt;:\inetpub\wwwroot\PasswordVault\web.config file on the PVWA:-&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;DIV style="margin-bottom: 11px;margin-left: 80px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;&amp;lt;add key="EnableIdPInitiatedSso" value="yes"/&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&amp;nbsp;

&lt;OL start="2"&gt;&lt;LI style="margin-bottom: 11px;margin-left: 8px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;Find the User access URL of the Idira App from the IdP. For example, the Idira Application in Azure will be something like this:-&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;DIV style="margin-bottom: 11px;margin-left: 8px;"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV style="margin-bottom: 11px;margin-left: 8px;margin-left: 80px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;&lt;A href="https://myapps.microsoft.com/signin/1ab23456-123a-12a3-a123-1234a567bc89?tenantId=a1b2c3d4-1ab2-12ab-ab1c-1abcd234567e" style="color: #0563c1;text-decoration: underline;" target="_blank"&gt;https://myapps.microsoft.com/signin/1ab23456-123a-12a3-a123-1234a567bc89?tenantId=a1b2c3d4-1ab2-12ab-ab1c-1abcd234567e&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV style="margin-bottom: 11px;margin-left: 8px;margin-left: 80px;"&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;This is where to find this value in Azure:-&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ka32J000000CnHeQAK__eid=ka32J000000CnHe&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000004DeUO.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/97549iE2F09E17ACD30D7B/image-size/large?v=v2&amp;amp;px=999" role="button" title="ka32J000000CnHeQAK__eid=ka32J000000CnHe&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000004DeUO.png" alt="ka32J000000CnHeQAK__eid=ka32J000000CnHe&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000004DeUO.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;OL start="3"&gt;&lt;LI style="margin-bottom: 11px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;Download the PS-SAML-Interactive module from the following website - https://github.com/allynl93/PS-SAML-Interactive&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;DIV style="margin-bottom: 11px;margin-left: 80px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ka32J000000CnHeQAK__eid=ka32J000000CnHe&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000004DeVH.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/97550iC40B4D4B2C0E16FE/image-size/large?v=v2&amp;amp;px=999" role="button" title="ka32J000000CnHeQAK__eid=ka32J000000CnHe&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000004DeVH.png" alt="ka32J000000CnHeQAK__eid=ka32J000000CnHe&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000004DeVH.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;DIV style="margin-bottom: 11px;"&gt;&lt;SPAN style="font-size: 20px;"&gt;&lt;STRONG&gt;&lt;U&gt;Procedure:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV style="margin-bottom: 11px;margin-left: 40px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;On the machine you want to use for Swagger, place the PS-SAML-Interactive module into a separate directory and open this directory into a Powershell Administrator window. Then type the following:-&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV style="margin-bottom: 11px;margin-left: 80px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;- import-module -name .\PS-SAML-Interactive.psm1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV style="margin-bottom: 11px;margin-left: 80px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;- $LoginURL = 'https://myapps.microsoft.com/signin/1ab23456-123a-12a3-a123-1234a567bc89?tenantId=a1b2c3d4-1ab2-12ab-ab1c-1abcd234567e'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV style="margin-bottom: 11px;margin-left: 80px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;- New-SAMLInteractive -LoginIDP $LoginURL&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV style="margin-bottom: 11px;"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV style="margin-bottom: 11px;margin-left: 40px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;You will then be prompted for login credentials for your IdP. These credentials should be the ones you want to use to login to Swagger.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV style="margin-bottom: 11px;margin-left: 40px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;A SAMLResponse will be returned in the Powershell window. To make things easier, you could change the third command above to 'New-SAMLInteractive -LoginIDP $LoginURL &amp;gt; SAMLResponse.txt' so that the SAML Response is saved to a text file.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV style="margin-bottom: 11px;margin-left: 40px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;The SAML Response now needs to be URL encoded since it will probably contain characters that are not in a format that can be transmitted over the internet. Such characters include '+' or '#'. For this you can use a website such as www.samltools.com/url.php or meyerweb.com/eric/tools/dencoder (other sites are available).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV style="margin-bottom: 11px;margin-left: 40px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;Copy the urlencoded SAML Response into a notepad file or similar.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV style="margin-bottom: 11px;margin-left: 40px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;Navigate to the swagger page and click on the AUTH API. For the 'type' value use SAML and for the 'data' value use the following:-&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV style="margin-bottom: 11px;margin-left: 80px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;SAMLResponse=&amp;lt;url encoded SAMLResponse&amp;gt;&amp;amp;apiUse=true&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV style="margin-bottom: 11px;margin-left: 120px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;Note: Though the below screenshot says that setting "secureMode" to "true" is optional, the current workflow requires this key to either be deleted from the call or set to "false." If you have it set to "true," you will get errors on subsequent calls after authenticating.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV style="margin-bottom: 11px;margin-left: 40px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;Ensure that Parameter content type is set to application/x-www-form-urlencoded&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV style="margin-bottom: 11px;margin-left: 80px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ka32J000000CnHeQAK__eid=ka32J000000CnHe&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000004DeWA.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/97552i876F2F38C561FB14/image-size/large?v=v2&amp;amp;px=999" role="button" title="ka32J000000CnHeQAK__eid=ka32J000000CnHe&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000004DeWA.png" alt="ka32J000000CnHeQAK__eid=ka32J000000CnHe&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000004DeWA.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;DIV style="margin-bottom: 11px;margin-left: 40px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;After clicking ‘Try it out’ you will see an authentication token in the Response body with a Response Code of 200.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV style="margin-bottom: 11px;margin-left: 80px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ka32J000000CnHeQAK__eid=ka32J000000CnHe&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000004DeWP.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/97553iC40C275C7B78319D/image-size/large?v=v2&amp;amp;px=999" role="button" title="ka32J000000CnHeQAK__eid=ka32J000000CnHe&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000004DeWP.png" alt="ka32J000000CnHeQAK__eid=ka32J000000CnHe&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000004DeWP.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;DIV style="margin-bottom: 11px;margin-left: 40px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;This indicates that authorization was successful. Now you will be able to carry out tasks using the other APIs on the swagger page.&lt;BR /&gt;&lt;BR /&gt;PLEASE NOTE: Authentication will fail if ANY user is already logged in to the PVWA or Web Portal through another tab on the same browser. If the user wants to use Swagger as well as being logged into the PVWA or Web Portal then Swagger will need to be loaded up with the browser window in incognito mode.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV style="margin-left: 40px;"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Thu, 05 Nov 2026 20:08:11 GMT</pubDate>
    <dc:creator>CyberArkAlumni</dc:creator>
    <dc:date>2026-11-05T20:08:11Z</dc:date>
    <item>
      <title>How to login to Swagger using SAML authentication</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-articles/how-to-login-to-swagger-using-saml-authentication/ta-p/1427853</link>
      <description>Since v12.5 of the portal (or PVWA), authentication via Swagger has changed. Now users need to log into Swagger through the Auth API on the Swagger page. This describes how to use SAML authentication to login to Swagger.

&lt;H3&gt;Steps&lt;/H3&gt;
&lt;U&gt;&lt;SPAN style="font-size: 20px;"&gt;&lt;STRONG&gt;Pre-requisites:-&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/U&gt;&lt;BR /&gt;&amp;nbsp;
&lt;OL&gt;&lt;LI style="margin-bottom: 11px;margin-left: 8px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;IdP initiated SSO must be set in the &amp;lt;appSettings&amp;gt; section of the &amp;lt;Drive letter&amp;gt;:\inetpub\wwwroot\PasswordVault\web.config file on the PVWA:-&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;DIV style="margin-bottom: 11px;margin-left: 80px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;&amp;lt;add key="EnableIdPInitiatedSso" value="yes"/&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&amp;nbsp;

&lt;OL start="2"&gt;&lt;LI style="margin-bottom: 11px;margin-left: 8px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;Find the User access URL of the Idira App from the IdP. For example, the Idira Application in Azure will be something like this:-&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;DIV style="margin-bottom: 11px;margin-left: 8px;"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV style="margin-bottom: 11px;margin-left: 8px;margin-left: 80px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;&lt;A href="https://myapps.microsoft.com/signin/1ab23456-123a-12a3-a123-1234a567bc89?tenantId=a1b2c3d4-1ab2-12ab-ab1c-1abcd234567e" style="color: #0563c1;text-decoration: underline;" target="_blank"&gt;https://myapps.microsoft.com/signin/1ab23456-123a-12a3-a123-1234a567bc89?tenantId=a1b2c3d4-1ab2-12ab-ab1c-1abcd234567e&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV style="margin-bottom: 11px;margin-left: 8px;margin-left: 80px;"&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;This is where to find this value in Azure:-&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ka32J000000CnHeQAK__eid=ka32J000000CnHe&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000004DeUO.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/97549iE2F09E17ACD30D7B/image-size/large?v=v2&amp;amp;px=999" role="button" title="ka32J000000CnHeQAK__eid=ka32J000000CnHe&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000004DeUO.png" alt="ka32J000000CnHeQAK__eid=ka32J000000CnHe&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000004DeUO.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;OL start="3"&gt;&lt;LI style="margin-bottom: 11px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;Download the PS-SAML-Interactive module from the following website - https://github.com/allynl93/PS-SAML-Interactive&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;DIV style="margin-bottom: 11px;margin-left: 80px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ka32J000000CnHeQAK__eid=ka32J000000CnHe&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000004DeVH.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/97550iC40B4D4B2C0E16FE/image-size/large?v=v2&amp;amp;px=999" role="button" title="ka32J000000CnHeQAK__eid=ka32J000000CnHe&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000004DeVH.png" alt="ka32J000000CnHeQAK__eid=ka32J000000CnHe&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000004DeVH.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;DIV style="margin-bottom: 11px;"&gt;&lt;SPAN style="font-size: 20px;"&gt;&lt;STRONG&gt;&lt;U&gt;Procedure:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV style="margin-bottom: 11px;margin-left: 40px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;On the machine you want to use for Swagger, place the PS-SAML-Interactive module into a separate directory and open this directory into a Powershell Administrator window. Then type the following:-&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV style="margin-bottom: 11px;margin-left: 80px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;- import-module -name .\PS-SAML-Interactive.psm1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV style="margin-bottom: 11px;margin-left: 80px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;- $LoginURL = 'https://myapps.microsoft.com/signin/1ab23456-123a-12a3-a123-1234a567bc89?tenantId=a1b2c3d4-1ab2-12ab-ab1c-1abcd234567e'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV style="margin-bottom: 11px;margin-left: 80px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;- New-SAMLInteractive -LoginIDP $LoginURL&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV style="margin-bottom: 11px;"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV style="margin-bottom: 11px;margin-left: 40px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;You will then be prompted for login credentials for your IdP. These credentials should be the ones you want to use to login to Swagger.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV style="margin-bottom: 11px;margin-left: 40px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;A SAMLResponse will be returned in the Powershell window. To make things easier, you could change the third command above to 'New-SAMLInteractive -LoginIDP $LoginURL &amp;gt; SAMLResponse.txt' so that the SAML Response is saved to a text file.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV style="margin-bottom: 11px;margin-left: 40px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;The SAML Response now needs to be URL encoded since it will probably contain characters that are not in a format that can be transmitted over the internet. Such characters include '+' or '#'. For this you can use a website such as www.samltools.com/url.php or meyerweb.com/eric/tools/dencoder (other sites are available).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV style="margin-bottom: 11px;margin-left: 40px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;Copy the urlencoded SAML Response into a notepad file or similar.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV style="margin-bottom: 11px;margin-left: 40px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;Navigate to the swagger page and click on the AUTH API. For the 'type' value use SAML and for the 'data' value use the following:-&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV style="margin-bottom: 11px;margin-left: 80px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;SAMLResponse=&amp;lt;url encoded SAMLResponse&amp;gt;&amp;amp;apiUse=true&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV style="margin-bottom: 11px;margin-left: 120px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;Note: Though the below screenshot says that setting "secureMode" to "true" is optional, the current workflow requires this key to either be deleted from the call or set to "false." If you have it set to "true," you will get errors on subsequent calls after authenticating.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV style="margin-bottom: 11px;margin-left: 40px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;Ensure that Parameter content type is set to application/x-www-form-urlencoded&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV style="margin-bottom: 11px;margin-left: 80px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ka32J000000CnHeQAK__eid=ka32J000000CnHe&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000004DeWA.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/97552i876F2F38C561FB14/image-size/large?v=v2&amp;amp;px=999" role="button" title="ka32J000000CnHeQAK__eid=ka32J000000CnHe&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000004DeWA.png" alt="ka32J000000CnHeQAK__eid=ka32J000000CnHe&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000004DeWA.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;DIV style="margin-bottom: 11px;margin-left: 40px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;After clicking ‘Try it out’ you will see an authentication token in the Response body with a Response Code of 200.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV style="margin-bottom: 11px;margin-left: 80px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ka32J000000CnHeQAK__eid=ka32J000000CnHe&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000004DeWP.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/97553iC40C275C7B78319D/image-size/large?v=v2&amp;amp;px=999" role="button" title="ka32J000000CnHeQAK__eid=ka32J000000CnHe&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000004DeWP.png" alt="ka32J000000CnHeQAK__eid=ka32J000000CnHe&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000004DeWP.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;DIV style="margin-bottom: 11px;margin-left: 40px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;This indicates that authorization was successful. Now you will be able to carry out tasks using the other APIs on the swagger page.&lt;BR /&gt;&lt;BR /&gt;PLEASE NOTE: Authentication will fail if ANY user is already logged in to the PVWA or Web Portal through another tab on the same browser. If the user wants to use Swagger as well as being logged into the PVWA or Web Portal then Swagger will need to be loaded up with the browser window in incognito mode.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV style="margin-left: 40px;"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 05 Nov 2026 20:08:11 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-articles/how-to-login-to-swagger-using-saml-authentication/ta-p/1427853</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2026-11-05T20:08:11Z</dc:date>
    </item>
  </channel>
</rss>

