Skip to content

Microsoft Azure account chooser is bypassed on login (no issue with Google sign in though) #915

@aiva-teddy

Description

@aiva-teddy

Checklist

Description

Hi there,

Current/undesired behavior

I'm having issues with sign in where if I sign in via Microsoft Azure, sign out, and then sign in again, the sign in completely bypasses the Microsoft Azure email entry / account chooser, forcing the same Azure account to be automatically signed in, without giving me the option to sign in via a different email address.

When I sign in via Microsoft Azure, I also ensure I do NOT tick the "Stay signed in?" check box.

Expected/desired behavior

Users signing in via Microsoft Azure should always enter an email address when signing back in.

Current implementation

Here's what I'm currently doing in the Android implementation -

  • Add prompt: "login" parameter to the WebAuthProvider.login() call via calling .withParameters(mapOf("prompt" to "login"))
  • On logout, call WebAuthProvider.logout()

The login and logout flows are being presented via Chrome Custom Tabs.

Reproduction

I don't have direct access to our Auth0 Management console so I am not sure if I can provide reliable means for reproducing in a sandbox app with a sandbox set up.

Additional context

The odd thing is this doesn't seem to be an issue with Google sign in - after log out, I'm always presented the Google account chooser on log in; never is it "bypassed" the same way as Microsoft Azure is doing. I don't know why Microsoft Azure is doing anything special here.

It's also odd this is NOT an issue for iOS. In our iOS implementation, the user is ALWAYS being presented with the email page when signing in via Microsoft Azure. In this regard, I wonder if the following issues are related

I may be ruling out any special settings in our Auth0 management console or Microsoft Azure, but do suggest if there's anything there that could be causing my issue.

Additionally, my issue is related to this issue another user brought up.

If you don't call the logout method, the next time you go to login the Azure AD page will not allow you to switch accounts and the user gets stuck with the original account that was logged in. The only way to fix this is to go to clear your Chrome browser data and then go login again.

The only difference with my set up is I am calling WebAuthProvider.logout(), and yet despite this, I am experiencing "user gets suck with the original account that was logged in" as described.

Auth0.Android version

3.13.0

Android version(s)

Tested on 13 and 14

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis points to a verified bug in the code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions