Can we embed the login popip into the same page

Billingi, Prabhakar 41 Reputation points
2020-08-10T07:45:35.87+00:00

Using implicit flow login popup opening in new window. Can we embed in same page.

or

Can we stop navigating to the parent window, when login popup is opened.

Any other way to achieve this using iFrame or anything.

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,389 questions
{count} votes

1 additional answer

Sort by: Most helpful
  1. soumi-MSFT 11,716 Reputation points Microsoft Employee
    2020-08-10T10:36:29.137+00:00

    @Billingi, Prabhakar , There are two available methods for authentication with redirect flows, namely:

    1. loginRedirect - if using this method, you will need to explicitly register a callback through the handleRedirectCallback() method. This is needed since redirect flows do not return promises as the popup methods do.
    2. loginPopup - The popup methods (loginPopup, acquireTokenPopup) return promises, so you can use the promise pattern (.then and .catch) to handle them.

    For your case, I guess you can try using the loginRedirect method. Since I am not aware of how your code looks like, hence sharing the following link, which I believe might give you some more insight on the implementation.

    https://stackoverflow.com/questions/46417709/how-to-use-loginredirect-instead-of-loginpopup

    Hope this helps.

    Do let us know if this helps and if there are any more queries around this, please do let us know so that we can help you further. Also, please do not forget to accept the response as Answer; if the above response helped in answering your query.