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 — How to use Oauth Installed application authorization code flow with gcloud-node? · Issue #678 · googleapis/google-cloud-node

How to use Oauth Installed application authorization code flow with gcloud-node? #678

New issue
Copy link
New issue
Copy link
Closed
Closed
How to use Oauth Installed application authorization code flow with gcloud-node?#678
Copy link
Assignees
stephenplusplus

Description

@tamalsaha
tamalsaha
opened on Jun 18, 2015
Issue body actions
No description provided.

Activity

Next
  1. jgeewax commented on Jun 18, 2015

    @jgeewax
    jgeewax
    on Jun 18, 2015
    Contributor
    More actions

    I think you're talking about 3LO (where a user gets a screen, and you get an OAuth2 token to use on their behalf, which you refresh from time to time...) right?

    If so, we currently don't support that, as we're focused on server-to-server communication using service accounts. Pull-requests would be welcome for this, but we're not seeing a lot of customer demand for this one.

  2. jgeewax
    added
    auth
    on Jun 18, 2015
  3. dhermes commented on Jun 18, 2015

    @dhermes
    dhermes
    on Jun 18, 2015
    Contributor
    More actions

    @jgeewax You can support it easily via grabbing the local token from gcloud login. For deployed applications, we should strongly advise against using anything but service accounts (be they via a file or directly via GCE or GAE).

  4. jgeewax commented on Jun 18, 2015

    @jgeewax
    jgeewax
    on Jun 18, 2015
    Contributor
    More actions

    @dhermes : I believe we do pull the token from gcloud auth login already... I think this is about prompting the user for authorization (aka, do the work that gcloud auth login does)

  5. dhermes commented on Jun 18, 2015

    @dhermes
    dhermes
    on Jun 18, 2015
    Contributor
    More actions

    Gotcher. I would cite the support for 3LO tokens minted via gcloud auth login as sufficient and would mark this as "Fixed" (closed on GH).

  6. tamalsaha commented on Jun 19, 2015

    @tamalsaha
    tamalsaha
    on Jun 19, 2015
    Author
    More actions

    We are dynamically creating new GCP project and want to upload files there. Currently, you can only create new GCP projects using 3LO (service accounts does not work). So, we have no service account associated with those GCP projects. I can use gapi-nodejs-client to work around it.

  7. jgeewax commented on Jun 19, 2015

    @jgeewax
    jgeewax
    on Jun 19, 2015
    Contributor
    More actions

    That makes sense -- a non-existent project doesn't have a service account that would have access.

    That said, I think the only way to make that work is to steal the same code that something like gcloud auth login uses, and at that rate, you might as well run that command ... right?

  8. dhermes commented on Jun 22, 2015

    @dhermes
    dhermes
    on Jun 22, 2015
    Contributor
    More actions

    If you don't want to require having the gcloud CLI installed, the GOOGLE_APPLICATION_CREDENTIALS environment variable is used with the "Google Default Credentials". You can pick it up as a secondary fallback.

  9. stephenplusplus commented on Aug 14, 2015

    @stephenplusplus
    stephenplusplus
    on Aug 14, 2015
    Contributor
    More actions

    If you have the JSON object with client_id, client_secret, etc. for an authorized_user type, you can give that to gcloud:

    var gcloud = require('gcloud')({
      credentials: {
        client_id: "1111.apps.googleusercontent.com",
        client_secret: '...',
        refresh_token: '...',
        type: 'authorized_user'
      }
    });

    @tamalsaha Is there any chance that is what you're looking for?

    Reacted by Linda Lawton
  10. stephenplusplus commented on Aug 24, 2015

    @stephenplusplus
    stephenplusplus
    on Aug 24, 2015
    Contributor
    More actions

    @tamalsaha going to close, but please re-open if that doesn't resolve the issue.

  11. stephenplusplus
    closed this as completedon Aug 24, 2015
  12. JustinBeckwith
    assigned
    stephenplusplus
    on Feb 1, 2021
  13. sofisl
    added a commit that references this issue on Nov 17, 2022

    build: update copyright year to 2022 (#678)

    e73d9ca
  14. sofisl
    added a commit that references this issue on Jan 10, 2023

    chore(deps): update dependency gts to v3 (#678)

    ba714b2
  15. miguelvelezsa
    added a commit that references this issue on Jul 23, 2025

    chore: release 1.12.0 (#678)

    3b0dac1
  16. 9 remaining items

  17. miguelvelezsa
    added a commit that references this issue on Jan 28, 2026

    chore: release 6.1.0 (#678)

    8926f5d
  18. sofisl
    added 4 commits that reference this issue on Feb 3, 2026

    fix(docs): fix link for job configuration load (#678)

    f139e41

    migrate code from googleapis/cloud-profiler-nodejs (#7087)

    288deb4

    chore(main): release 4.2.2 (#678)

    f4e0feb

    chore: release 6.1.0 (#678)

    86c5769
  19. GautamSharda
    added a commit that references this issue on Feb 5, 2026

    chore(deps): update dependency @types/node to v18 (#678)

    8de2766
  20. sofisl
    added a commit that references this issue on Feb 17, 2026

    chore: release 6.1.0 (#678)

    85b95a0
  21. GautamSharda
    added a commit that references this issue on Feb 23, 2026

    chore(deps): update dependency @types/node to v18 (#678)

    ebd91f8
  22. sofisl
    added 2 commits that reference this issue on Feb 24, 2026

    chore: release 2.2.0 (#678)

    f7645cd

    chore(deps): update dependency gts to v1 (#678)

    ffcda50
  23. GautamSharda
    added a commit that references this issue on Feb 26, 2026

    chore(deps): update dependency @types/node to v18 (#678)

    b6d9c76
  24. sofisl
    added a commit that references this issue on Feb 26, 2026

    fix(deps): use the latest extend (#678)

    0f257c0
  25. GautamSharda
    added a commit that references this issue on Mar 12, 2026

    build: auto-approve renovate-bot PRs for minor updates (#1145) (#678)

    c75c67f
  26. sofisl
    added a commit that references this issue on Mar 17, 2026

    chore(deps): update dependency puppeteer to v24 (#678)

    a182a44
  27. thiyaguk09
    added a commit that references this issue on Mar 18, 2026

    chore(deps): update dependency gts to v1 (googleapis#678)

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

Metadata

Metadata

Assignees

  • @stephenplusplus
    stephenplusplus

Labels

No labels
No labels

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.