Error: restricted_client when authorization Youtube API V3

时光怂恿深爱的人放手 提交于 2019-12-18 11:59:43

问题


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 ?


回答1:


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



来源:https://stackoverflow.com/questions/50501811/error-restricted-client-when-authorization-youtube-api-v3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!