Skip to content
This repository was archived by the owner on May 15, 2024. It is now read-only.
This repository was archived by the owner on May 15, 2024. It is now read-only.

[Bug] Cannot complete Google Authentication if Two-factor authentication is enabled on account #1292

@maxal1917

Description

@maxal1917

Description

When two factor authentication is enabled on Google Account, and same phone is used as second factor, as soon as password is entered on login screen, the process is interrupted by Android system popup to confirm that the attempt is legitimate. Unfortunately, as result the authentication is also interrupted with an exception "Task was cancelled".

Without two-factor authentication I can complete sign in process.

I was able to reproduce it in Sample app.

Steps to Reproduce

  1. Implement server side mobil-auth endpoint as it is demonstrated in Sample from Xamarin.Forms.Essentials.
  2. authResult = await Xamarin.Essentials.WebAuthenticator.AuthenticateAsync(new Uri(_authEndpoint + schema),
    new Uri("tennis-umpire://authentication-callback"));

Expected Behavior

Authentication is completed

Actual Behavior

Exception with "Task cancelled" message is thrown

Basic Information

  • Version with issue:

  • Last known good version: None

  • IDE: Visual Studio

  • Platform Target Frameworks:

    • Android: 10.x
  • Android Support Library Version: Not Applicable

  • Nuget Packages: None
    Screenshot_20200527-234059
    Screenshot_20200527-234112

  • Affected Devices: Tested on Google Pixel 3

Screenshots

Reproduction Link

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions