Google OAuth in .net 9 Maui App (Android) funktioniert nicht
Posted: 27 Feb 2025, 05:16
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.
Es wird mir diesen Fehler angezeigt. Unterstützt in neuen Clients
https://developers.google.com/identity/ ... tom-scheme
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;
}
https://developers.google.com/identity/ ... tom-scheme