Skip to content

Sample code is not working for Xamarin Forms android broker authentication #227

Open
@waisong-anacle

Description

@waisong-anacle

Which version of MSAL.NET are you using?
MSAL.NET 4.56.0

Platform
Xamarin Forms android project

What authentication flow has the issue?
With Broker

Repro
Download the sample project, launch the [2-With-broker] project , try to login with broker, if an Android device has the Authenticator or Intune Company Portal app installed, the authentication process should go through Authenticator. However, I've observed an issue where, after logging in, the app attempts to launch Authenticator, but the Authenticator briefly appears and then disappears, continuously flickering without allowing the user to return to the app. The only solution seems to be forcibly closing the app.

Expected behavior
Authenticator appears, select account login, redirect back to app and user will be authenticated.

Actual behavior
Authenticator briefly appears and then disappears, continuously flickering without allowing the user to return to the app. The only solution seems to be forcibly closing the app.

Possible solution
None

Extra info
Tested in
Android version 12
Android version 13

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions