验证设备的Google云端硬盘 [英] Authenticating Google Drive for devices

查看:122
本文介绍了验证设备的Google云端硬盘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发用于访问Google API的应用程序,并且已经使用OAuth 2.0(适用于设备)使用Calendar和Google Cloud Print API.

I am developing an application to access Google APIs and I have working the Calendar and Google Cloud Print APIs using OAuth 2.0 for devices.

几个月前,我在Google论坛上询问有关Drive API返回"invalid_scope"的问题,他们告诉我们,对于设备而言,它们限制了范围,并希望不久后可以打开更多内容.

A few months ago on the Google forum I asked about the Drive API returning "invalid_scope" and they informed us that for devices they were limiting scopes and hoped to open more up shortly.

然后我们询问其他API(例如Drive)何时可以向设备开放,因为有客户要求我们将其添加到应用程序中.

We asked then about when the other APIs (like Drive) may open up to devices as we have customer asking us to add this to our application.

希望来自Google的人可以回答此问题.谢谢!

Hoping someone from Google can answer this question. Thanks!

请求:

POST /o/oauth2/device/code HTTP/1.0
Accept: text/html
Host: accounts.google.com
Content-type: application/x-www-form-urlencoded
Content-length: 92

client_id=xxxxxx&scope=https://www.googleapis.com/auth/drive

答案:

{
  "error" : "invalid_scope"
}

推荐答案

是的,我们将打开备份设备流以访问更多范围.我们仍在研究细节,但打算在本季度晚些时候进行此更改.

Yes, we will be opening the device flow back up for access to more scopes. We're still working on the details but are aiming to make this change later this quarter.

这篇关于验证设备的Google云端硬盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆