其他分享
首页 > 其他分享> > android – Xamarin.Auth得到disallowed_useragent错误[Xamarin.Forms]

android – Xamarin.Auth得到disallowed_useragent错误[Xamarin.Forms]

作者:互联网

我试图用谷歌和Facebook实现登录.我已成功使用Xamarin.Auth实现Facebook登录,但在Google登录中我收到错误disallowed_useragent,我知道Google已经更改了他们的政策,并且不允许使用WebView登录,但是还有其他方法可以在Xamarin中使用Google登录.表格(便携式)?

enter image description here

谢谢.

解决方法:

这是Google的新限制,他们不再允许在嵌入式网页浏览中使用他们的登录界面.因此,您可以在“本地视图” – 外部浏览器(chrome标签,safari等)中为您的应用实施授权.他们会将结果返回给您的应用.

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

标签:android,xamarin-forms,google-login,xamarin-auth
来源: https://codeday.me/bug/20190705/1391987.html