问题描述
我在新项目中创建新的客户端密钥时遇到此错误.
- 这是一个错误.
错误: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.
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.
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.
这篇关于错误:restricted_client 授权 Youtube API V3 时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!