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

feat: Support short-lived tokens in Credentials #347

Merged
merged 1 commit into from
Oct 15, 2021

Conversation

quartzmo
Copy link
Member

  • Skip Client#fetch_access_token! in Credentials when token is already present.
  • Add Signet::OAuth2::Client#token_type
  • Add Signet::OAuth2::Client#needs_access_token?

closes: #346

* Skip Client#fetch_access_token! in Credentials when token is already present.
* Add Signet::OAuth2::Client#token_type
* Add Signet::OAuth2::Client#needs_access_token?

closes: googleapis#346
@quartzmo quartzmo requested a review from a team as a code owner October 12, 2021 19:34
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Oct 12, 2021
@quartzmo
Copy link
Member Author

quartzmo commented Oct 12, 2021

The acceptance test suites for google-cloud-bigquery and google-cloud-pubsub both pass for me locally when run against this change. I also generated a short-lived OAuth 2.0 token and manually tested using it with google-cloud-bigquery with this change.

Copy link
Member

@dazuma dazuma left a comment

Choose a reason for hiding this comment

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

Looks great!

@dazuma dazuma merged commit 9d7051c into googleapis:master Oct 15, 2021
@quartzmo quartzmo deleted the credentials-tokens branch October 20, 2021 20:13
@quartzmo
Copy link
Member Author

This was released in googleauth v1.1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support short-lived service account credentials (OAuth 2.0 access tokens)
2 participants