简体   繁体   English

Google - “尽快迁移到新的 Google 身份服务库”。 我们是否需要删除对 google-api-php-client 的使用?

[英]Google - "Migrate to the new Google Identity Services library as soon as possible". Do we need to remove our use of google-api-php-client?

I received an email from Google stating that 'One or more of your web applications uses the legacy Google Sign-In JavaScript library.我收到来自 Google 的 email,指出“您的一个或多个 web 应用程序使用旧版 Google 登录 JavaScript 库。 Please migrate your project(s) to the new Google Identity Services SDK before March 31, 2023.'请在 2023 年 3 月 31 日之前将您的项目迁移到新的 Google 身份服务 SDK。

This is a surprise, as we recently upgraded to using only the https://github.com/googleapis/google-api-php-client library for logging the user in. I have no mention of the old API (gapi) in my source code.这是一个惊喜,因为我们最近升级到仅使用https://github.com/googleapis/google-api-php-client库来登录用户。我没有提到旧的 API (gapi) 在我的源代码。

I'm using the oauth endpoints directly to query the API.我直接使用 oauth 端点来查询 API。

I'm worried that I will need to stop using the PHP library now as well.我担心我现在也需要停止使用 PHP 库。 Can anybody please offer some advice?有人可以提供一些建议吗?

The Google apis php client library is a library designed to use Oauth2 to access google apis. Google apis php 客户端库是一个旨在使用 Oauth2 访问 google apis 的库。 It uses the PHP scripting language它使用PHP脚本语言

The Google Sign-In JavaScript library is a JavaScript library used for Signing in users to your application using their google account. Google 登录 JavaScript 库是一个 JavaScript 库,用于让用户使用他们的 google 帐户登录您的应用程序。

First off Oauth2 is not sign in. Second Php scripting language is not the JavaScript scripting language.首先关闭 Oauth2 未登录。第二个 Php 脚本语言不是 JavaScript 脚本语言。

These are two different things.这是两个不同的东西。 The php client library has nothing to do with gapi which is part of the JavaScript client library. php 客户端库与 gapi 无关,后者是 JavaScript 客户端库的一部分。

I would check the rest of your system to ensure that you are not using the JavaScript library.我会检查您系统的 rest 以确保您没有使用 JavaScript 库。 Your php library is unaffected.您的 php 图书馆不受影响。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM