问题
I got this error when I create new client secret in new project.
- 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