错误:restricted_client 授权 Youtube API V3 时 [英] Error: restricted_client when authorization Youtube API V3

查看:14
本文介绍了错误:restricted_client 授权 Youtube API V3 时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在新项目中创建新的客户端密钥时遇到此错误.

<块引用>

  1. 这是一个错误.

错误:restricted_client

请求中未注册的范围:https://www.googleapis.com/auth/youtube.readonly

请求详细信息access_type=离线response_type=代码client_id=487794563386-mujtj6b5iatnmvdailldn468gg028p8g.apps.googleusercontent.comredirect_uri=http://localhost:61515/authorize/scope=https://www.googleapis.com/auth/youtube.readonly这就是我们所知道的.

我该如何解决?

解决方案

403 错误是用户访问错误.您当前通过身份验证的用户无权执行您在您的案例中尝试执行的操作,这似乎与以下范围有关.

<块引用>

https://www.googleapis.com/auth/youtube.readonly

不看代码很难知道自己在做什么.我建议您再次尝试对您的用户进行身份验证.如果您更改了机密,那么它就无法与另一个机密生成的刷新令牌一起使用.

我将与 Google 联系以确保最近没有任何变化.我自己在更改日志中看不到任何内容.可能存在他们没有发布的隐蔽更改.

状态

I got this error when I create new client secret in new project.

  1. That’s an error.

Error: restricted_client

Unregistered scope(s) in the request: https://www.googleapis.com/auth/youtube.readonly

Request Details access_type=offline response_type=code client_id=487794563386-mujtj6b5iatnmvdailldn468gg028p8g.apps.googleusercontent.com redirect_uri=http://localhost:61515/authorize/ scope=https://www.googleapis.com/auth/youtube.readonly That’s all we know.

How could I fix that ?

解决方案

403 errors are errors with the users access. The user you are currently authenticated with does not have permission to do what you are trying to do in your case it appears to have something to do with the following scope.

https://www.googleapis.com/auth/youtube.readonly

Its hard to know what you are doing without seeing your code. I suggest you attempted to authenticate your user again. IF you changed the secret then its not going to work with a refresh token generated by another secret.

I am going to contact Google to be sure that there hasnt been any changes recently. I cant see anything in the change logs myself. There may have been a stealth change that they didnt release.

Status

这篇关于错误:restricted_client 授权 Youtube API V3 时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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