【问题标题】:invalid scope using oauth2 and server side python使用 oauth2 和服务器端 python 的范围无效
【发布时间】:2012-08-23 04:54:31
【问题描述】:

在身份验证期间重定向到 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

【问题讨论】:

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


    【解决方案1】:

    范围是:

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

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

    【讨论】:

      猜你喜欢
      • 2019-03-12
      • 2013-03-22
      • 1970-01-01
      • 1970-01-01
      • 2015-11-03
      • 2021-02-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多