GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [Feature Request] Authorize using oAuth tokens · Issue #1117 · googleapis/google-cloud-node

[Feature Request] Authorize using oAuth tokens #1117

New issue
Copy link
New issue
Copy link
Closed
Closed
[Feature Request] Authorize using oAuth tokens#1117
Copy link
Assignees
stephenplusplus
Labels
core

Description

@jasonpolites
jasonpolites
opened on Feb 5, 2016
Issue body actions

Currently the authorization for gcloud-code is done via a service account but it would be great if the client could be authorized via an oAuth token as an alternative.

This would make it easy to quickly iterate on solutions, and also share solutions with other people without needing to pass around keys etc.

For example, the quickstart.js guide for the Gmail API materializes an oAuth token with a given scope. It would be simple to add GCP scopes to this so I could re-use the one auth token to talk to both GMail and GCP resources (one using googleapis and one using gcloud)

This would mean I could create a snippet of code that depends on certain scopes and share that code with anyone else without them needing to create a service account to execute the code.

Activity

  1. stephenplusplus commented on Feb 5, 2016

    @stephenplusplus
    stephenplusplus
    on Feb 5, 2016
    Contributor
    More actions

    Do you mean literally a token string or a json file (from the guide, client_secret.json)?

  2. stephenplusplus
    added
    enhancement
    core
    on Feb 5, 2016
  3. jasonpolites commented on Feb 5, 2016

    @jasonpolites
    jasonpolites
    on Feb 5, 2016
    Author
    More actions

    I would think the preferred option would be an in-memory value. Developers can then immediately authorize gcloud from an oAuth dance, and if they want to store the token they can do that but they'll have to store/load it themselves (they may want to store it somewhere other than local file system, so I think just having a String value makes the most sense)

  4. stephenplusplus commented on Feb 6, 2016

    @stephenplusplus
    stephenplusplus
    on Feb 6, 2016
    Contributor
    More actions

    Sounds good to me!

    @jgeewax should we move this to gcloud-common so other languages can support this style of auth?

  5. stephenplusplus commented on Feb 7, 2016

    @stephenplusplus
    stephenplusplus
    on Feb 7, 2016
    Contributor
    More actions

    This issue was moved to GoogleCloudPlatform/gcloud-common#76

  6. stephenplusplus
    closed this as completedon Feb 7, 2016
  7. JustinBeckwith
    assigned
    stephenplusplus
    on Feb 1, 2021
  8. sofisl
    added a commit that references this issue on Feb 3, 2026

    chore(main): release 6.0.0 (#1117)

    15c3b13
  9. sofisl
    added a commit that references this issue on Feb 24, 2026

    feat!: Drop Node 8 support (#1006)

    2500a99
  10. GautamSharda
    added 2 commits that reference this issue on Mar 5, 2026

    fix(deps): google-gax v2.17.1 (#1117)

    4336674

    chore: release 9.5.3 (#1118)

    9608ccf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @stephenplusplus
    stephenplusplus

Labels

core

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.