引用:https://developers.googleblog.com/2016/08/modernizing-oauth-interactions-in-native-apps.html
在此页面中,明确声明:“,从2017年4月20日起,我们将开始针对存在可行替代方案的平台上的所有OAuth客户端,使用网络 View 阻止OAuth请求。”
这也会影响Electron WebView吗?如果可以,您能给我指出一些 sample 吗?
最佳答案
看起来Google确实在淘汰Electron WebViews。有多种解决方案:
(1)设置一个类似于https://github.com/googlesamples/oauth-apps-for-windows/tree/master/OAuthDesktopApp的HttpListener
(2)在redirect_url中指定自定义URI方案,以在登录后打开您的应用程序。 (这可能会在用户的浏览器中打开通知/弹出窗口)
关于oauth - Google OAuth Electron WebView弃用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41705752/