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

Description
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
- Implement server side mobil-auth endpoint as it is demonstrated in Sample from Xamarin.Forms.Essentials.
- 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 Support Library Version: Not Applicable
-
Nuget Packages: None


-
Affected Devices: Tested on Google Pixel 3
Screenshots
Reproduction Link