You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When my users want to switch to another account, I want to redirect them to the general AAD login page where they can enter their email and password.
The problem is that when i call loginRedirect(), msal.js always appends a login_hint that has the currently logged-in account.
This logic happens in ServerRequestParameters.addHintParameters.
Is there a way to make msal js not provide the login hint?
A possible workaround is to use select_account instead of login in prompt, but I'm already using Me control for account switching from within my app (without needing to redirect), so I'm interested in redirecting to user/password entry rather than a "pick an account" UX.
The text was updated successfully, but these errors were encountered:
lidermanrony
changed the title
How can I prevent login_hint to be added to URL when login() is called?
How can I prevent login_hint to be added to URL when loginRedirect() is called?
Jul 1, 2020
Sorry for the delay over the long weekend. Yes--onRedirectNavigate allows you to control the redirect yourself, so your solution should definitely be possible. More info on that in #1691
Library
msal@1.x.x
or@azure/msal@1.x.x
@azure/msal-browser@2.x.x
@azure/msal-angular@0.x.x
@azure/msal-angular@1.x.x
@azure/msal-angularjs@1.x.x
Description
When my users want to switch to another account, I want to redirect them to the general AAD login page where they can enter their email and password.
The problem is that when i call
loginRedirect()
, msal.js always appends a login_hint that has the currently logged-in account.This logic happens in
ServerRequestParameters.addHintParameters
.Is there a way to make msal js not provide the login hint?
A possible workaround is to use select_account instead of login in prompt, but I'm already using Me control for account switching from within my app (without needing to redirect), so I'm interested in redirecting to user/password entry rather than a "pick an account" UX.
The text was updated successfully, but these errors were encountered: