IE 11 security prompt with SAML redirect for login - The webpage you are viewing is trying to close the tab.
When using OKTA with Portal (as an IDP), when you click the Sign in with my enterprise login a new tab opens which redirects to the IDP. Once you sign in the IDP attempts to close the tab and redirect on the original tab which creates a popup that says:
The webpage you are viewing is trying to close the tab. Do you want to close this tab? Y / N
I had the similar issue and did the following to work in our organisation. Probably not the way to go and needs to be modified or tested whenever the Portal for ArcGIS is upgraded or with any browser updates
On top of the SAML pop-up (screenshot 1), up on selecting the ADFS option, I do get one more additional IE pop-up in a new tab (screenshot 2) which can be closed after clicking on option “Yes” which in turn returns to parent window.
Currently, I made a change to the core Portal file to suppress the IE pop-up in the following path
Path: D:\Program Files\ArcGIS\Portal\webapps\arcgis#home\postsignin.html
Modification: Basically, code was already written in the file to suppress the pop-up, but the condition to enter into the code was incorrect. The existing condition in the code is, if (navigator.appName === "Microsoft Internet Explorer").
But, the navigator.appName reads as Netscape instead of IE acronym and failing to close the pop-up automatically. So, had to change the condition to verify the browser appName as “Netscape”, which did the work at the moment.
Environment: Windows 10, IE11, Portal for ArcGIS 10.6 (It’s the same code in 10.6.1 as well)
Update/Solution: According to the Compatibility changes, IE 11 returns the word “Netscape” for navigator.appName property, to reflect the HTML5 standards to match the behavior of other browsers.
Thanks for posting the workaround. I tested in-house and see the original behavior and that the workaround works. We'll get this sorted out in the software.
Hi Jonathan, this is great news! Just to be sure, did your testing include the major desktop browsers as well as the browsers on various mobile devices? If so you saved me time 🙂 Looking forward to see this change in future releases.
I encounter the same issue with IE 11. We are on ArcGIS Portal 10.7.1.
It appears the workaround that is mentioned here was already implemented in this release. However still facing the same problem. Any suggestions or other workarounds to fix this?