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

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Google OAuth in .net 9 Maui App (Android) funktioniert nicht

by Anonymous » 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.

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

Top