Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auth.GenerateIdToken #57

Merged
merged 2 commits into from
Dec 20, 2021
Merged

Conversation

thepwagner
Copy link
Collaborator

@thepwagner thepwagner commented Dec 17, 2021

This should read like #56 , but decoupled from other pending changes.

I did make two functional changes from that draft:

  • Rather than interrogate and fetch an id_token during initialization, I moved that to the TokenSource.Token() method implementation. This avoids attempting to extract an id token in two places.
  • Rather than use an http.Client+JSON to request the token, I'm using the iamcredentials client.

Related

@thepwagner thepwagner self-assigned this Dec 17, 2021
@thepwagner thepwagner marked this pull request as ready for review December 17, 2021 18:56
@thepwagner thepwagner requested review from rxbchen and lynnsh December 17, 2021 19:01
Copy link
Collaborator

@lynnsh lynnsh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@thepwagner thepwagner merged commit 204873e into grafeas:main Dec 20, 2021
@thepwagner thepwagner deleted the idtoken-from-access-token branch December 20, 2021 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants