Git Product home page Git Product logo

Comments (5)

jacobsa avatar jacobsa commented on June 15, 2024

I believe this is the documentation.

from gcsfuse.

jacobsa avatar jacobsa commented on June 15, 2024

Even better, this is built in to the public oauth2 package. Unfortunately this doesn't expose any capability to find out what scopes are provisioned for the instance, to catch errors early.

The gsutil source code implies that this is possible, though.

from gcsfuse.

jacobsa avatar jacobsa commented on June 15, 2024

Filed golang/oauth2#102 about querying a list of scopes.

from gcsfuse.

jacobsa avatar jacobsa commented on June 15, 2024

Looks like the list of scopes can be obtained from the oauth2 API.

from gcsfuse.

jacobsa avatar jacobsa commented on June 15, 2024

Okay, so more of this is already built than I thought.

Plan:

  • Use google.DefaultTokenSource, which automatically gets you the standard flow for finding Google credentials, including GCE VM ones and those used by the gcloud command-line tool.
  • Don't worry about detecting the wrong scope for now. The work on better error output (#60) will make the problem more obvious.
  • If we do eventually want to do this, we can query the tokeninfo service to get a space-separated list of scopes.
  • Add a GOOGLE_APPLICATION_CREDENTIALS environment variable in gcsfuse_mount_helper/sample.sh.
  • Test both gcsfuse and the mount tool, on OS X and Linux.
  • Kill the --key_file flag and mount option.
  • Update documentation.
  • Send an announcement to gcsfuse-users.

from gcsfuse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.