<?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: Unable to authenticate due to javascript popup in PAM Self-Hosted Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/unable-to-authenticate-due-to-javascript-popup/m-p/1313416#M14201</link>
    <description>&lt;P&gt;Hi @Cedric BOREUX​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I think there is an error at "@MyURL" it is not being correctly resolved.&lt;/P&gt;&lt;P&gt;Also you don't need all those ControlSend commands, because you are already embedding credentials in your URL.&lt;/P&gt;&lt;P&gt;Here is example AutoIt code to run web-browser:&lt;/P&gt;&lt;CODE&gt;   ; Run Chrome with specified user in URL and exit
   Local $_Program = '"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" ' &amp;amp; 'https://' &amp;amp; $g_pTargetUsername &amp;amp; ':' &amp;amp; $g_pTargetPassword &amp;amp; '@' &amp;amp; $g_pTargetAddress &amp;amp; '  --no-default-browser-check'
   Local $_WorkingDir = ""
   LogWrite("Running Chrome")
   ; Note for the code below: $_PID is not the PID we need to pass to PSM, because it will not give the PID of Chrome window. You need to do it separately, if you need it, but this will increase complexity of the program, so let me know, if you need example for getting the PID of the Chrome.
   Local $_PID = Run($_Program, $_WorkingDir, @SW_MAXIMIZE)
   AssertErrorLevel(@error, "Failed to run program.", -1002)&lt;/CODE&gt;&lt;P&gt;Also you can play with different Chrome run options, most interesting are described in the example code below, this also answers your question about certificates validation:&lt;/P&gt;&lt;CODE&gt;   Global Const $g_pUniqueChromeProfileFolderName = "MyApplicationName"
   local $_Program = "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
   ; Important note: --user-data-dir= parameter should be defined when running Chrome,
   ; otherwise it is not possible to run several chrome browsers by one user in different PSM sessions
   ; I decided to use addrees field (IP address or dns name) of the fortigate for this.
   ; Note: user data data dir parameter should be really unique
   ;  that is why I also add user name parameter, because otherwise it is not possible to run 2 sessions to the same fortigate using different users
   Local $_UserDataDir = EnvGet("USERPROFILE") &amp;amp; "\ChromeProfiles\" &amp;amp; $g_pUniqueChromeProfileFolderName &amp;amp; "\" &amp;amp; $g_pTargetAddress &amp;amp; "_" &amp;amp; $g_pTargetUsername
   ; Note: I decided to skip certificate check for this, because we access the management inteface via IP, that is why we will alway get certificate error page
   ;  --test-type option is required to skip next message "you are using an unsupported command-line flag ignore-certificate-errors"
   ; Note: we need to use --force-renderer-accessibility to be able to access chrome UI via API
   local $_Arguments = "--new-window " &amp;amp; $_URL &amp;amp; " --no-default-browser-check --no-first-run --start-maximized --ignore-certificate-errors --test-type --force-renderer-accessibility --disable-save-password-bubble --user-data-dir=" &amp;amp; $_UserDataDir
   local $_ProgramWithArguments = $_Program &amp;amp; " " &amp;amp; $_Arguments
   local $_PID = Run($_ProgramWithArguments, "")
   AssertErrorLevel(@error, "Error Failed to run Chrome.", -1004)&lt;/CODE&gt;&lt;P&gt;Hope this helps, let me know, if you have other questions.&lt;/P&gt;</description>
    <pubDate>Wed, 13 May 2020 10:43:47 GMT</pubDate>
    <dc:creator>CyberArkAlumni</dc:creator>
    <dc:date>2020-05-13T10:43:47Z</dc:date>
    <item>
      <title>Unable to authenticate due to javascript popup</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/unable-to-authenticate-due-to-javascript-popup/m-p/1313409#M14194</link>
      <description>&lt;P&gt;Hi, i created a new Connection Component based on PSM-WebAppSample for Xerox CentreWare Web.  &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Impossible for me to fill the good "Form Fields"  with the correct values : i have to fill a POPUP (Javascript ?) and impossible to catch fields ID, Name or XPath.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can i do ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thx for your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 13:47:14 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/unable-to-authenticate-due-to-javascript-popup/m-p/1313409#M14194</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2020-02-25T13:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to authenticate due to javascript popup</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/unable-to-authenticate-due-to-javascript-popup/m-p/1313410#M14195</link>
      <description>&lt;P&gt;Could you please provide the screenshot with popup?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 18:11:58 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/unable-to-authenticate-due-to-javascript-popup/m-p/1313410#M14195</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2020-03-04T18:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to authenticate due to javascript popup</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/unable-to-authenticate-due-to-javascript-popup/m-p/1313411#M14196</link>
      <description>&lt;P&gt;Hello. How can i do  that ?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2020 13:17:51 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/unable-to-authenticate-due-to-javascript-popup/m-p/1313411#M14196</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2020-04-24T13:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to authenticate due to javascript popup</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/unable-to-authenticate-due-to-javascript-popup/m-p/1313412#M14197</link>
      <description>&lt;P&gt;You can run the web-browser on the PSM server itself and navigate the web-site, then take screenshot of a pop-up that you are writing about.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 07:32:07 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/unable-to-authenticate-due-to-javascript-popup/m-p/1313412#M14197</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2020-04-30T07:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to authenticate due to javascript popup</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/unable-to-authenticate-due-to-javascript-popup/m-p/1313413#M14198</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i run the web page on the PSM, i receive this page :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Field_Content_versions_oct20__0682J000009naelQAA.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/77481i57C07DAD773156CA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Field_Content_versions_oct20__0682J000009naelQAA.png" alt="Field_Content_versions_oct20__0682J000009naelQAA.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If i click after on Administration, a popup appears :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Field_Content_versions_oct20__0682J000009nafUQAQ.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/77483iAB4A0447DD03C950/image-size/large?v=v2&amp;amp;px=999" role="button" title="Field_Content_versions_oct20__0682J000009nafUQAQ.png" alt="Field_Content_versions_oct20__0682J000009nafUQAQ.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it's possible to have automatically this authentication form using this URL:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Field_Content_versions_oct20__0682J000009nagDQAQ.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/77485i9001946677CBCA5A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Field_Content_versions_oct20__0682J000009nagDQAQ.png" alt="Field_Content_versions_oct20__0682J000009nagDQAQ.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to fill in ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help&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>Mon, 11 May 2020 13:14:39 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/unable-to-authenticate-due-to-javascript-popup/m-p/1313413#M14198</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2020-05-11T13:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to authenticate due to javascript popup</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/unable-to-authenticate-due-to-javascript-popup/m-p/1313414#M14199</link>
      <description>&lt;P&gt;You can do it in 3 different ways, maybe more, but I know only those.1st method is the easiest, so I will describe it here with additional details, if you need details for the other methods, then let me know, they are more heavy and I will have to put some example codes on GitHub.&lt;/P&gt;&lt;P&gt;1. By &lt;B&gt;embedding credential directly into the connection string and command line&lt;/B&gt;. But in this case your account that you are using should have correct username and password and you &lt;B&gt;cannot use logon account&lt;/B&gt;. For this please use "&lt;A alt="https://community.cyberark.com/mplace/s/#a352J000000pO5eQAE-a392J000001h4AwQAI" href="https://community.cyberark.com/mplace/s/#a352J000000pO5eQAE-a392J000001h4AwQAI" target="_blank"&gt;CyberArk Endpoint Privilege Manager (EPM) - AD&lt;/A&gt;" connection component from Marketplace as example. The principle for you is the same, just URL address is different. Let me know, if you need some additional explanation there. Basically you can even run this command from your computer or from PSM server to see if that works:&lt;/P&gt;&lt;CODE&gt;C:\Program Files (x86)\Google\Chrome\Application\chrome.exe https://{Username}:{Password}@{Address}&lt;/CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Replace {Username}:{Password}@{Address} with your values, for example, notice "" quotes around chrome address, don't put them in your connection component settings, you need them when running from CMD:&lt;/P&gt;&lt;CODE&gt;"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" https://MyUsername:MyPassword@my.website.com/Xerox...&lt;/CODE&gt;&lt;P&gt;Also with this scenario pay attention to a special characters in your password, certain character might cause issues.&lt;/P&gt;&lt;P&gt;2. By first running &lt;B&gt;AutoIt &lt;/B&gt;script and then in this script &lt;B&gt;embedding credentials&lt;/B&gt;, it is like in 1st method, but here you can also in AutoIt retrieve logon account credentials and use use them in a command, when running Chrome.&lt;/P&gt;&lt;P&gt;3. By running &lt;B&gt;AutoIt script with special UIAWrappers.au3 module&lt;/B&gt; that can also parse this Sign-In window, which is by default not possible in AutoIt. This is, by the way, the most secure way, because credentials are not embedded in the command, like in previous 2 examples, and cannot be visible via ProcessExplorer from SysInternals.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 13:58:02 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/unable-to-authenticate-due-to-javascript-popup/m-p/1313414#M14199</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2020-05-11T13:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to authenticate due to javascript popup</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/unable-to-authenticate-due-to-javascript-popup/m-p/1313415#M14200</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I started using AutoIt... So here's my base :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Field_Content_versions_oct20__0682J000009nzxXQAQ.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/77509i9DA3EDD48B61F689/image-size/large?v=v2&amp;amp;px=999" role="button" title="Field_Content_versions_oct20__0682J000009nzxXQAQ.png" alt="Field_Content_versions_oct20__0682J000009nzxXQAQ.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I suppose i've just to add $TargerUsername and $TargetPassword in the $CLIENT_EXECUTABLE parameter ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this on the PSM :&lt;/P&gt;&lt;CODE&gt;$ConnectionClientPID = Run($CLIENT_EXECUTABLE &amp;amp; " https://" &amp;amp; $TargetUsername &amp;amp; ":" &amp;amp; $TargetPassword &amp;amp; "@MyURL")&lt;/CODE&gt;&lt;P&gt;CHROME is starting, but MyURL doesn't start...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;What about the SSL : How can i force EnforceCertificateValidation to NO ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 10:03:12 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/unable-to-authenticate-due-to-javascript-popup/m-p/1313415#M14200</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2020-05-13T10:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to authenticate due to javascript popup</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/unable-to-authenticate-due-to-javascript-popup/m-p/1313416#M14201</link>
      <description>&lt;P&gt;Hi @Cedric BOREUX​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I think there is an error at "@MyURL" it is not being correctly resolved.&lt;/P&gt;&lt;P&gt;Also you don't need all those ControlSend commands, because you are already embedding credentials in your URL.&lt;/P&gt;&lt;P&gt;Here is example AutoIt code to run web-browser:&lt;/P&gt;&lt;CODE&gt;   ; Run Chrome with specified user in URL and exit
   Local $_Program = '"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" ' &amp;amp; 'https://' &amp;amp; $g_pTargetUsername &amp;amp; ':' &amp;amp; $g_pTargetPassword &amp;amp; '@' &amp;amp; $g_pTargetAddress &amp;amp; '  --no-default-browser-check'
   Local $_WorkingDir = ""
   LogWrite("Running Chrome")
   ; Note for the code below: $_PID is not the PID we need to pass to PSM, because it will not give the PID of Chrome window. You need to do it separately, if you need it, but this will increase complexity of the program, so let me know, if you need example for getting the PID of the Chrome.
   Local $_PID = Run($_Program, $_WorkingDir, @SW_MAXIMIZE)
   AssertErrorLevel(@error, "Failed to run program.", -1002)&lt;/CODE&gt;&lt;P&gt;Also you can play with different Chrome run options, most interesting are described in the example code below, this also answers your question about certificates validation:&lt;/P&gt;&lt;CODE&gt;   Global Const $g_pUniqueChromeProfileFolderName = "MyApplicationName"
   local $_Program = "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
   ; Important note: --user-data-dir= parameter should be defined when running Chrome,
   ; otherwise it is not possible to run several chrome browsers by one user in different PSM sessions
   ; I decided to use addrees field (IP address or dns name) of the fortigate for this.
   ; Note: user data data dir parameter should be really unique
   ;  that is why I also add user name parameter, because otherwise it is not possible to run 2 sessions to the same fortigate using different users
   Local $_UserDataDir = EnvGet("USERPROFILE") &amp;amp; "\ChromeProfiles\" &amp;amp; $g_pUniqueChromeProfileFolderName &amp;amp; "\" &amp;amp; $g_pTargetAddress &amp;amp; "_" &amp;amp; $g_pTargetUsername
   ; Note: I decided to skip certificate check for this, because we access the management inteface via IP, that is why we will alway get certificate error page
   ;  --test-type option is required to skip next message "you are using an unsupported command-line flag ignore-certificate-errors"
   ; Note: we need to use --force-renderer-accessibility to be able to access chrome UI via API
   local $_Arguments = "--new-window " &amp;amp; $_URL &amp;amp; " --no-default-browser-check --no-first-run --start-maximized --ignore-certificate-errors --test-type --force-renderer-accessibility --disable-save-password-bubble --user-data-dir=" &amp;amp; $_UserDataDir
   local $_ProgramWithArguments = $_Program &amp;amp; " " &amp;amp; $_Arguments
   local $_PID = Run($_ProgramWithArguments, "")
   AssertErrorLevel(@error, "Error Failed to run Chrome.", -1004)&lt;/CODE&gt;&lt;P&gt;Hope this helps, let me know, if you have other questions.&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 10:43:47 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/unable-to-authenticate-due-to-javascript-popup/m-p/1313416#M14201</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2020-05-13T10:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to authenticate due to javascript popup</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/unable-to-authenticate-due-to-javascript-popup/m-p/1313417#M14202</link>
      <description>&lt;P&gt;@Cedric BOREUX​&amp;nbsp; Can you help me with complete script at - kiran.gorai55@gmail.com&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thankyou,&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2020 10:57:56 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/unable-to-authenticate-due-to-javascript-popup/m-p/1313417#M14202</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2020-06-19T10:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to authenticate due to javascript popup</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/unable-to-authenticate-due-to-javascript-popup/m-p/1313418#M14203</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;This happens because the web browser is being launched as the shadow user and not a domain user when trying to go a website which has SSO authentication, typically through adfs. AutoIT would be a great work around, however autoIT is not allowed in all environments as it is open source and not supported.&lt;/P&gt;&lt;P&gt;we encountered this and we found out there is a windows setting where "windows authentication" is being selected first.  if that setting is removed,  msForms  will be the default authentication method.  rather than a pop up appearing, the website will redirect to a msForms url which has fields you can scrape the html elements off. add those fields to the webform settings then it should work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;by disabling windows authentication, any non privileged account which use sso/adfs will prob have to be routed through cyberark. &lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 18:47:36 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/unable-to-authenticate-due-to-javascript-popup/m-p/1313418#M14203</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2022-02-01T18:47:36Z</dc:date>
    </item>
  </channel>
</rss>

