Unable to change account with Microsoft Entra ID

Hi! I am using Microsoft Entra ID to log in to an app, but a when a user has logged out, the login information is remembered. A user can therefore not log out and switch to another account. For that reason I want to set a query parameter “prompt” to “prompt=select_account” to enable the user to select account (as seen here: Microsoft identity platform and OAuth 2.0 authorization code flow - Microsoft identity platform | Microsoft Learn). However, I cannot access this query parameter in Custom auth providers under Login in appfarm create. Could this be implemented in appfarm, or is it perhaps already possible? Alternatively, is there a different option that would allow changing account?
Any help would be much appreciated.

Hi Alexander,

I usually use a different browser or incognito mode to log in with a different account (this is an issue I often encounter for Microsoft applications in general).

I will check if any other ways enable switching Microsoft accounts through Appfarm and get back to you.

Unfortunately I do not think changing browser or incognito mode will suffice as the app is made for use when added to home screen on a smartphone device. However, I’m still very much interested in hearing any alternate solutions as soon as they’re found!

We have found a work-around solution to this. When logging out of the app, we redirect the user to a microsoft url:


What is required is the tenant ID and the added redirect url (which is the app’s url) must be added to Azure’s list of valid redirect url’s. This allows you to log in again with a different account.

1 Like

Happy to hear that you found a solution, and thanks for sharing it!

1 Like