AzureAD / azure-activedirectory-library-for-js

The code for ADAL.js and ADAL Angular has been moved to the MSAL.js repo. Please open any issues or PRs at the link below.
https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/maintenance/adal-angular
Apache License 2.0
627 stars 374 forks source link

Selecting wrong account for implicit flow #795

Closed lworkman closed 5 years ago

lworkman commented 6 years ago

I'm trying to use implicit flow in an iframed site to access an API. Everything works fine when the user is only signed into one account, but if a user is signed into multiple Office 365 accounts (under different tenancies) the implicit flow fails and tries to redirect the user asking them to choose the account. However, because this is within an iframe, the redirect fails and no token is generated.

Is there any way to set which account Adal js should be using to login with when the user is logged into multiple accounts?

lworkman commented 6 years ago

Any response to this?

nehaagrawal commented 5 years ago

@lworkman can you please paste the error that you are getting? Also I am assuming you are calling the silent version of acquireToken api and not the interactive ones (acquireTokenPopup/acquireToken Redirect).