Open 12rambau opened 2 years ago
We need an additional OAuth scope to list user projects. The problem is that users will have to reconnect their Google account to get that additional scope. Maybe we could have a check when loading the page, asking Google for available scopes, comparing these to a list of scopes we require, and prompt the user to reconnect if it doesn't match.
ok I thought that was already working in the current build.
following what you did in https://github.com/openforis/sepal/blob/5e80d0ccde92c056b1f886c5d545f22cd8f11430/modules/gee/src/jobs/ee/asset/list.js#L70 I wanted to access users cloud buckets as well from the AssetSelector of
sepal-ui
.But When I try to run the following:
which is creating the following API request: https://cloudresourcemanager.googleapis.com/v1/projects?pageSize=1000&fields=nextPageToken%2C+projects%28id%2C+name%29&alt=json
I get this response from Google server:
It seems that my authentication is not sufficient, how do you make it work in the main framework ?