苹果的登录在我的iOS应用程序中运行得很好。我已经为Google配置了服务器,但无法让它正常工作。它是一个Asp.net 6.0BLazor WebAssembly API。
这行代码在我的Android应用程序中被调用,但没有返回任何内容。
result = await WebAuthenticator.Default.AuthenticateAsync(authUrl, callbackUrl);我使用这个例子配置了AuthController。
这一行代码在我的AuthController中执行。
// Not authenticated, challenge
await Request.HttpContext.ChallengeAsync(scheme);Android应用程序的目标是net6.0-Android 31。最小目标是net6.0-Android 30。我的测试设备是运行API 31的Android模拟器。我正在运行MicrosoftVisualStudioEnterprise2022(64位)--当前版本17.3.6,Xamarin.Android.SDK版本13.0.0.0。
我还在我的MauiProgram.cs文件中添加了这一行。
builder.Services.AddSingleton(WebAuthenticator.Default);有人知道怎么让这件事成功吗?谢谢!
https://stackoverflow.com/questions/74100735
复制相似问题