Xamarin.Auth getting disallowed_useragent error [Xamarin.Forms]

人走茶凉 提交于 2019-12-10 15:47:43

问题


I was trying to implement login with Google and Facebook. I have successfully implemented Facebook login with Xamarin.Auth but in the Google Login I am getting error disallowed_useragent, I know Google has changed their policy and will not allow the login using WebView but is there any other way to implement Login with Google in Xamarin.Forms (Portable)?

Thank You.


回答1:


It's a new Google restriction, they do not allow using their login interface in embedded webviews anymore. Therefore you can implement authorization for your app in "Native Views" - external browsers (chrome tabs, safari etc). They will return result back to your app.

The working example for Google is here: Authenticating Users with an Identity Provider



来源:https://stackoverflow.com/questions/42884941/xamarin-auth-getting-disallowed-useragent-error-xamarin-forms

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!