Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
488 views
in Technique[技术] by (71.8m points)

Authenticating Google Drive for devices

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.

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.

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.

Hoping someone from Google can answer this question. Thanks!

Request:

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

Answer:

{
  "error" : "invalid_scope"
}
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...