-
Notifications
You must be signed in to change notification settings - Fork 556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add !hostedLoginPage condition to redirect check #1876
Conversation
@stevehobbsdev Looks good. I noticed the branch wasn't tested since the build didn't break. Is there any reason not to add tests for this change? |
@lbalmaceda Sorry about that, I had marked the PR as draft while i was adding tests as they somehow did not get included in the commit, then i noticed a problem but didn't have time to fix immediately. The tests are there now but weirdly the build is breaking on Circle (not locally). Let me look into it. |
Ok, tests sorted! |
* Add !hostedLoginPage condition to redirect check * Add tests for core/web_api * Use global.window instead of window in web_api.test Co-authored-by: Luciano Balmaceda <[email protected]>
* Add !hostedLoginPage condition to redirect check * Add tests for core/web_api * Use global.window instead of window in web_api.test Co-authored-by: Luciano Balmaceda <[email protected]>
Changes
This PR forces popup mode + sso mode for Electron and Cordova apps only when not on the hosted login page. This means that Electron apps where the login page is opened inside the app would not try and do a cross-origin authentication request when using the hosted ULP.
References
Raised by internal ESD.
Testing
Tested and verified through manual testing with a customer using an Electron app.
Checklist