Google OAuth Electron WebView弃用 [英] Google OAuth Electron WebView deprecation

查看:131
本文介绍了Google OAuth Electron WebView弃用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

参考: https:/ /developers.googleblog.com/2016/08/modernizing-oauth-interactions-in-native-apps.html

在此页面中,显然指出: 我们将从2017年4月20日开始使用网络视图在存在可行替代方案的平台上针对所有OAuth客户端阻止OAuth请求。

In this page, it is clearly stated that: "On April 20, 2017, we will start blocking OAuth requests using web-views for all OAuth clients on platforms where viable alternatives exist."

这是否还会影响Electron WebView?如果是这样,您能给我指出任何示例吗?

Does this affect Electron WebViews as well? If it does, can you point me to any samples?

推荐答案

看起来Google确实在淘汰Electron WebViews。对此有多种解决方案:

It looks like Google is indeed deprecating Electron WebViews. There are multiple solutions to this:


  • 在用户浏览器中打开google登录页面,然后:

  • Open google sign-in page in user's browser and :

(1)设置与此 https://github.com/googlesamples/oauth-apps-for-windows/tree/master/OAuthDesktopApp

(2)指定自定义redirect_url中的URI方案用于在登录后打开您的应用程序。 (这可能会在用户的浏览器中打开通知/弹出窗口)

(2) Specify custom URI scheme in the redirect_url to open your app after login. (This might open notifications/popus in the user's browser)

使用 AppAuth 执行登录到Google

Use AppAuth to perform login to Google

这篇关于Google OAuth Electron WebView弃用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆