Forum Discussion
authentication.authenticate() opens in external browser tab instead of pop-up window on first call
- Jun 22, 2020
The problem was that .initialize() method is not a synchronous operation. Digging into the API docs shows that .initialize() takes a callback function as a parameter. So wrapping this in a promise and chaining the authentication call to happen afterward fixed the problem.
That was not the problem. The main issue was to ensure that the external window url starts within the application route.
Amey2020 I know this is late, but we are experiencing the same behavior right now, however, only on citrix and / azure virtual desktop. More over, the issue seems tied to the windows config, as the issue stays within the same session, while switching accounts does not make a difference.
So:
Windows user A logs in, teams user A logs in -> issue
Windows user A logs in, teams user B logs in -> issue
Windows user B logs in, teams user A logs in -> no issue
Windows user B logs in, teams user B logs in -> no issue
Our code DOES use the callback of initialize method to call authenticate.
Can you please explain what you mean by "The main issue was to ensure that the external window url starts within the application route."