|Oauth 2 for devices and gdrive api?||ColumPaget||7/13/12 2:33 AM|
I can't figure out how to do 'Oauth 2 for devices' with gdrive. All the examples are in Ruby or .net, does anyone know where there are HTTP examples?
There doesn't seem to be a gdrive forum, does anyone know where there is one?
I've got as far as authenticating and getting https://www.googleapis.com/oauth2/v1/userinfo?alt=json, which gives me a 'user id' that I think I have to use with gdrive, but I'm not sure how.
If I include scopes from the gdrive api with along with the https://www.googleapis.com/auth/userinfo.profile scope, then I get a 400 Bad Request response.
|Re: [oauth2-dev] Oauth 2 for devices and gdrive api?||Naveen Agarwal||7/13/12 5:05 PM|
Could you describe your use case? The device flow should be used where the device has limited capabilities and no browser. If the device has a browser that should be the preferred option.
Not all scopes are supported to be used with the device flow and that is why you are getting an error.
|Re: [oauth2-dev] Oauth 2 for devices and gdrive api?||Pierre Villeneuve||11/2/12 10:07 AM|
It would be very helpful if you could somehow publish a description of which scopes are valid for the various flow types. Right now the simple error message "invalid_scope" leads to much frustration and confusion.
|Re: [oauth2-dev] Oauth 2 for devices and gdrive api?||Naveen Agarwal||11/2/12 12:38 PM|
I agree the current situation is not good. We are trying to figure out the best way to fix this. In the meantime please email me your use case and the scopes you are trying to use and we may be able to suggest some options.
|Re: [oauth2-dev] Oauth 2 for devices and gdrive api?||Pierre Villeneuve||11/2/12 4:08 PM|
Thank you very much for the prompt reply. The two APIs I'm using now are FusionTables and Drive. The first one seems to work fine with my device, it was just Drive that caused me some confusion. Your response has provided me with sufficient information for now. I will also look into using web authorization as that looks to be the recommended approach.