google-code-export / google-bigquery

Automatically exported from code.google.com/p/google-bigquery
1 stars 0 forks source link

Read-only scope for Google BigQuery doesn't work #220

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Steps:
1. Open API Explorer 
https://developers.google.com/apis-explorer/#s/discovery/v1/discovery.apis.getRe
st?api=bigquery&version=v2&_h=1&
2. Check auth field
3. I don't see BiqQuery read-only scope

Expected set of scopes is:
https://www.googleapis.com/auth/bigquery
https://www.googleapis.com/auth/bigquery.readonly
https://www.googleapis.com/auth/bigquery.insertdata

It is described here https://cloud.google.com/bigquery/authorization

Because of this issue automated OAuth flows cannot use read-only scope(i.e. 
Google Oauth Playground - see screenshot)

Original issue reported on code.google.com by bvz2001 on 12 Feb 2015 at 5:15

Attachments:

GoogleCodeExporter commented 9 years ago
This issue also makes troubles for Google Apps Script asking for manage scope 
while read-only scope is required:

function myFunction() {
  var BQprojectsList = BigQuery.Projects.list();

Original comment by bvz2001 on 12 Feb 2015 at 5:25

Attachments:

drummerwolli commented 5 years ago

any update here? is this going to be deprecated or why is it not documented? because apparently its working ...