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

问题描述

我在新项目中创建新客户端密码时收到此错误.

  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/范围=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.

Status

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

07-16 23:54
查看更多