Prevent auto-sign in on Facebook Sign In

CudoXY 26 Reputation points
2021-10-18T11:17:40.52+00:00

We're performing Sign In with Facebook via the Azure App Service based on this guide:
https://learn.microsoft.com/en-us/azure/app-service/configure-authentication-provider-facebook

However, whenever we're signing out and signing in again, our app always auto-signs in the previous account and doesn't provide any option to select a different account at all.

Do you have any recommendations on how to always ask the user to select an account or perhaps enter their credentials?

For Sign in with Google, we were able to fix this by adding the prompt=select_account parameter during .auth/login/<provider>. We've also tried prompt=login but these parameters doesn't seem to have any effect on Facebook.

Thanks in advance.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,909 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 25,981 Reputation points Microsoft Employee
    2021-10-18T19:05:48.62+00:00

    There isn't anything on the "Azure App Service" side of things that will handle this. It's specifically up to the features supported by the provider. Having said, App Service Facebook Sign In does utilize the state parameter which you should be able to use when confirming the identity since the token will be stored, assuming you have token store enabled.

    Best course of action I suggest though is having your app automatically log users out based on criteria that meets the behavior of your app.

    1 person found this answer helpful.
    0 comments No comments