gpt4 book ai didi

google-signin - 新的 Google Identity Services JavaScript 库 - 我如何向 google api 发出授权请求?

转载 作者:行者123 更新时间:2023-12-05 05:55:44 24 4
gpt4 key购买 nike

根据 google :

The older Google Sign-In platform library:apis.google.com/js/platform.js, and Google APIs client library forJavaScript: gapi.client, are no longer required for userauthentication and authorization. They have been replaced by a singlenew Google Identity Services JavaScript library:accounts.google.com/gsi/client.

使用较旧的库,您既可以对访问您网站的用户进行身份验证,也可以向日历等 google api 发出授权请求。

据我所知,文档中没有关于如何向日历等 google api 发出经过身份验证的请求的信息。

是新的 api 只为只登录的应用程序替换旧的。我是否缺少使用新 API 发出经过身份验证的请求的方法。

最佳答案

仅供引用:2022 年 2 月 15 日,Google 宣布在 Google Identify Service SDK 中提供授权:

https://developers.googleblog.com/2022/02/announcing-authorization-support-for.html

这是文档:

https://developers.google.com/identity/oauth2/web/guides/overview

关于google-signin - 新的 Google Identity Services JavaScript 库 - 我如何向 google api 发出授权请求?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69371973/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com