Google OAuth in .net 9 Maui App (Android) funktioniert nichtAndroid

Forum für diejenigen, die für Android programmieren
Anonymous
 Google OAuth in .net 9 Maui App (Android) funktioniert nicht

Post by Anonymous »

Ich versuche, Google OAuth Login in meine Maui -App zu integrieren. Ich habe dies erfolgreich für Facebook gemacht, da Facebook immer noch eine Umleitung von URL zulässt.

Code: Select all

try
{
var result = await WebAuthenticator.AuthenticateAsync(new Uri(authUrl), new Uri("myapp://google"));
if (result != null && result?.AccessToken != null)
{
return result.AccessToken;
}

throw new Exception("Failed to authenticate with Google");
}
catch (Exception)
{
throw;
}
Es wird mir diesen Fehler angezeigt. Unterstützt in neuen Clients
https://developers.google.com/identity/ ... tom-scheme

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post