弃用 https://www.googleapis.com/plus/v1/people/me 以及如何正确迁移
Deprecation of https://www.googleapis.com/plus/v1/people/me and how properly to migrate
最近Googleplus正在等待关闭,这也关闭了一些GooglePlusAPI 包括我们的服务正在积极使用的这个 https://www.googleapis.com/plus/v1/people/me
。
上面的 API 被用在我们的一个旧登录库中,我什至找不到它的源代码。因此,我现在正在尝试自己修补它。
从 Google 读取迁移 guide,它并没有说明如何更改 url。
引用一些开源库,如 1, 2。我想出了用 https://www.googleapis.com/oauth2/v3/userinfo
替换 url https://www.googleapis.com/plus/v1/people/me
的修复方法,但 oauth2/v3/userinfo
缺少文档,所以我很担心 oauth2/v3/userinfo
是不打算像上面那样使用。
所以我的问题是:
- 我的解决方案是:将
https://www.googleapis.com/plus/v1/people/me
更改为 https://www.googleapis.com/oauth2/v3/userinfo
一个预期的迁移,如果不是,那么我如何迁移出 Google Plus API?
- 关于
https://www.googleapis.com/oauth2/v3/userinfo
的任何文档?我能找到的最接近的是 this,它看起来更像是一个简短的介绍然后是文档。
既然没人回答,我想我会给出我能收集到的最好的信息...
对于1.多个开源项目的支持。 Pac4j, hybridauth. It seems like the method of change https://www.googleapis.com/plus/v1/people/me with https://www.googleapis.com/oauth2/v3/userinfo 是解决此问题的最佳方法。
对于 2。仍然没有详细的文档
“/oauth2/v3/userinfo”调用不会在 2019 年 3 月 7 日弃用,因为它不是 Google + API 的一部分。
如果您查看 Google 开发者控制台,这些调用不会注册为 Google + API 的一部分。
来自 Google 电子邮件:
If you are directly requesting the “plus.me” scope, any other Google+
OAuth scopes, or making any Google+ API calls, please ensure that you
remove these requests from your project before March 7, 2019.
最近Googleplus正在等待关闭,这也关闭了一些GooglePlusAPI 包括我们的服务正在积极使用的这个 https://www.googleapis.com/plus/v1/people/me
。
上面的 API 被用在我们的一个旧登录库中,我什至找不到它的源代码。因此,我现在正在尝试自己修补它。
从 Google 读取迁移 guide,它并没有说明如何更改 url。
引用一些开源库,如 1, 2。我想出了用 https://www.googleapis.com/oauth2/v3/userinfo
替换 url https://www.googleapis.com/plus/v1/people/me
的修复方法,但 oauth2/v3/userinfo
缺少文档,所以我很担心 oauth2/v3/userinfo
是不打算像上面那样使用。
所以我的问题是:
- 我的解决方案是:将
https://www.googleapis.com/plus/v1/people/me
更改为https://www.googleapis.com/oauth2/v3/userinfo
一个预期的迁移,如果不是,那么我如何迁移出 Google Plus API? - 关于
https://www.googleapis.com/oauth2/v3/userinfo
的任何文档?我能找到的最接近的是 this,它看起来更像是一个简短的介绍然后是文档。
既然没人回答,我想我会给出我能收集到的最好的信息...
对于1.多个开源项目的支持。 Pac4j, hybridauth. It seems like the method of change https://www.googleapis.com/plus/v1/people/me with https://www.googleapis.com/oauth2/v3/userinfo 是解决此问题的最佳方法。
对于 2。仍然没有详细的文档
“/oauth2/v3/userinfo”调用不会在 2019 年 3 月 7 日弃用,因为它不是 Google + API 的一部分。
如果您查看 Google 开发者控制台,这些调用不会注册为 Google + API 的一部分。
来自 Google 电子邮件:
If you are directly requesting the “plus.me” scope, any other Google+ OAuth scopes, or making any Google+ API calls, please ensure that you remove these requests from your project before March 7, 2019.