OAuth 2.0 Playground - 警报 API 不起作用

问题描述 投票:0回答:1

我正在尝试通过我的 React 应用程序中的 oAuth2.0 登录流程访问警报 api。

警报 API 范围

https://www.googleapis.com/auth/apps.alerts

退货

错误 400:无效_范围

尝试通过我的本地应用程序以及 oAuth 游乐场登录时。

我可以通过任何不同的方式进行身份验证以使用警报 API 范围吗?

我已经验证我的本地应用程序在使用其他范围时确实可以工作。

google-api google-oauth google-workspace oauth2-playground
1个回答
0
投票

该 API 要求您使用服务帐户,这是该 API 的唯一有效授权形式。

Oauth Playground 使用 Oauth2 进行授权,因此它无法与该 api 一起使用。

© www.soinside.com 2019 - 2024. All rights reserved.