GeezerVison is showing github.com — feat: downscoping with credential access boundaries by lsirac · Pull Request #702 · googleapis/google-auth-library-java
This repository was archived by the owner on May 12, 2026. It is now read-only.
Conversation
lsirac
commented
Jul 27, 2021
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
See go/cab-client. This feature is publicly documented here.
Summary:
- Adds a new DownscopedCredentials class that enables the ability to downscope, or restrict, the IAM permissions that a short-lived credential can use for Cloud Storage. This is done by defining a CredentialAccessBoundary which specifies the upper bound of permissions the downscoped credential will be able to access.
- OAuth2CredentialsWithRefresh enables access token refresh via a developer defined refresh handler.
- With CAB, STS may not always return an expires_in. The STS utility has been updated to reflect this. When not returned, the expires_in is copied from the source credential, when available.
- Includes integration tests with a one time use setup script (already ran).
- Samples/documentation will be provided in a separate PR.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
* feat: adds CAB rules classes
* fix: copyright
* fix: revert pom
* fix: review
* fix: bad link
* fix: more null and empty checks
* fix: expand javadoc
* fix: split null/empty checks
* fix: use checkNotNull
* feat: downscoping with credential access boundaries
* fix: rename RefreshableOAuth2Credentials to OAuth2CredentialsWithRefresh
* fix: review nits
…med by OAuth2CredentialsWithRefresh
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
elharo
Awaiting requested review from elharo
2 more reviewers
Reviewers whose approvals may not affect merge requirements
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
cla: yes
This human has signed the Contributor License Agreement.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.