问题
I am integrating an "edit profile" policy into a mobile app. The starting scenario is that the user is already signed in, either with a local (email) account or a social account.
Whenever I invoke the "edit profile" policy from the app, it first displays an IdP selection page. Since the user is already signed in, this is extremely confusing for the user, and unnecessary. Furthermore, if the user is signed in with a local account, she is forced to enter her credentials again.
How can I configure the B2C policy (or the app) such that the user gets straight to the actual profile editing page?
回答1:
You bypass it by removing the prompt=login
parameter from the policy URL.
Test it like this:
- Open a new browser, and use the
sign in
journey and login. - Open a new tab, and paste the Profile Edit link, remove the
prompt=login
query parameter. - Open the link and you are taken straight to the Edit Profile page, rather than seeing a sign in page.
来源:https://stackoverflow.com/questions/52147584/how-do-i-bypass-idp-selection-in-the-edit-profile-policy-in-azure-ad-b2c