gpt4 book ai didi

android - Xamarin.Auth 收到 disallowed_useragent 错误 [Xamarin.Forms]

转载 作者:太空宇宙 更新时间:2023-11-03 10:36:39 25 4
gpt4 key购买 nike

我正在尝试使用 GoogleFacebook 实现登录。我已经使用 Xamarin.Auth 成功实现了 Facebook 登录,但是在 Google 登录 中我收到错误 disallowed_useragent,我知道 Google 已经更改了他们的政策,并且不允许使用 WebView 登录,但是有没有其他方法可以在 Xamarin.Forms (Portable)< 中实现 Login with Google/?

enter image description here

谢谢。

最佳答案

这是一个新的谷歌限制,他们不再允许在嵌入式 WebView 中使用他们的登录界面。因此,您可以在“ native View ”- 外部浏览器(chrome 选项卡、safari 等)中为您的应用程序实现授权。他们会将结果返回给您的应用。

谷歌的工作示例在这里: Authenticating Users with an Identity Provider

关于android - Xamarin.Auth 收到 disallowed_useragent 错误 [Xamarin.Forms],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42884941/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com