使用oauth2和服务器端python的作用域无效

时间:2012-08-28 16:13:52

标签: python oauth-2.0 google-drive-api

我在身份验证期间重定向到Google时遇到错误

该网页有: 一些要求的范围无效。 {无效= [https://www.googleapis.com/drive/v2/files]} 学到更多 请求详情 范围= HTTPS://www.googleapis.com/drive/v2/files

在我的Drive SDK控制台上,启用了两个范围: [https://www.googleapis.com/auth/drive] 和 [https://www.googleapis.com/drive/v2/files]

这里是问题的网址(包含编辑的内容): https://accounts.google.com/ServiceLogin?service=lso&passive=1209600&continue=https://accounts.google.com/o/oauth2/auth?response_type%3Dcode%26scope%3Dhttps://www.googleapis.com/drive/v2/files%26access_type%3Doffline%26redirect_uri%3Dhttps://www.myweb.com:8181/oauth2callback%26client_id%1111111.apps.googleusercontent.com%26hl%3Den-US%26from_login%3D1%26as%3D4d3393dc2133b68e&ltmpl=popup&shdf=&安培; SCC = 1

1 个答案:

答案 0 :(得分:3)

范围是:

https://www.googleapis.com/auth/drive

另一个是您可以向其发出API请求的URL,它不是范围。

相关问题