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 — feat: Generate id_token with user credential · Issue #492 · googleapis/google-auth-library-java

This repository was archived by the owner on May 12, 2026. It is now read-only.
This repository was archived by the owner on May 12, 2026. It is now read-only.

feat: Generate id_token with user credential #492

Copy link
Copy link
Closed
#650
Closed
feat: Generate id_token with user credential#492
#650
Copy link
Assignees
TimurSadykov
Labels
type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Description

@guillaumeblaquiere
guillaumeblaquiere
opened on Oct 15, 2020
Issue body actions

Linked to the #468 and the PR #469, especially following the comment of @silvolu, I would like to propose another approach, this time compliant with IAP.

Instead of using the user credential to create an id_token with generic client_id and client_secret, I propose to use the Service Account Credentials API generateIdToken method.

This method required to use a service account, and not the user credential. By default, I propose to use the Compute Engine default service account of the current quotas project id.

The user can override this value by setting an environment variable SERVICE_ACCOUNT_APPLICATION_CREDENTIALS with the email of the service account to use.

The token is generated by calling the Service Account Credentials API generateIdToken method. I propose to reuse the existing method from IamUtils class

Because this method won't use the user credential (role and autorisation) and because it could be a trap for the user, I propose to print clear a warning message the first time that the id_token is generated. In addition, this message informs the users that they need to have the Service Account Token Creator role granted on the service account (printed in the logs also).

I will be happy to discuss about this in this issue or in the coming PR (I worked on the code to validate the feasibility)

Best

Activity

  1. yoshi-automation
    added
    triage meI really want to be triaged.
    🚨This issue needs some love.
    on Oct 16, 2020
  2. chingor13
    added
    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
    on Oct 21, 2020
  3. yoshi-automation
    removed
    triage meI really want to be triaged.
    🚨This issue needs some love.
    on Oct 21, 2020
  4. TimurSadykov
    self-assigned this
    on May 15, 2021
  5. TimurSadykov
    closed this as completedin #650on May 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @TimurSadykov
    TimurSadykov

Labels

type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

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.