【问题标题】:Xamarin.Auth getting disallowed_useragent error [Xamarin.Forms]Xamarin.Auth 出现 disallowed_useragent 错误 [Xamarin.Forms]
【发布时间】:2017-08-10 15:06:47
【问题描述】:

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

谢谢。

【问题讨论】:

  • 我有同样的问题。任何人都可以帮助我们。

标签: android xamarin.forms google-signin xamarin.auth


【解决方案1】:

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

Google 的工作示例如下: Authenticating Users with an Identity Provider

【讨论】:

    猜你喜欢
    • 2015-11-26
    • 1970-01-01
    • 2018-04-24
    • 1970-01-01
    • 2022-10-30
    • 1970-01-01
    • 1970-01-01
    • 2019-12-12
    • 1970-01-01
    相关资源
    最近更新 更多