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: downscoping with credential access boundaries by lsirac · Pull Request #691 · googleapis/google-auth-library-java

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

Conversation

@lsirac

@lsirac lsirac commented Jun 29, 2021

Copy link
Copy Markdown
Contributor

Adds support for downscoping with CAB as per go/cab-client.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@lsirac
feat: downscoping with credential access boundaries
5976845
@lsirac
lsirac requested a review from a team June 29, 2021 19:32
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Jun 29, 2021
@lsirac
lsirac requested a review from TimurSadykov June 29, 2021 19:33
TimurSadykov
TimurSadykov suggested changes Jul 2, 2021
View reviewed changes

@TimurSadykov TimurSadykov left a comment

Copy link
Copy Markdown

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.

Do you plan adding a functional test for this?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread oauth2_http/javatests/com/google/auth/oauth2/DownscopedCredentialsTest.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread oauth2_http/java/com/google/auth/oauth2/RefreshableOAuth2Credentials.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@lsirac

lsirac commented Jul 2, 2021

Copy link
Copy Markdown
Contributor Author

Integration tests will be added in a separate PR

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@lsirac
lsirac requested review from TimurSadykov and elharo July 2, 2021 17:37
elharo
elharo reviewed Jul 7, 2021
View reviewed changes
Comment thread oauth2_http/java/com/google/auth/oauth2/DownscopedCredentials.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread oauth2_http/java/com/google/auth/oauth2/DownscopedCredentials.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

TimurSadykov
TimurSadykov reviewed Jul 8, 2021
View reviewed changes
Comment thread oauth2_http/java/com/google/auth/oauth2/DownscopedCredentials.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@lsirac
fix: rename RefreshableOAuth2Credentials to OAuth2CredentialsWithRefresh
70abb0c
TimurSadykov
TimurSadykov approved these changes Jul 8, 2021
View reviewed changes
@lsirac
fix: review nits
ef3483f
@lsirac
lsirac merged commit 5077450 into googleapis:cab Jul 8, 2021
lsirac added a commit that referenced this pull request Aug 3, 2021
@lsirac @elharo
feat: downscoping with credential access boundaries (#702)
aa7ede1
* feat: adds CAB rules classes (#687)

* 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 (#691)

* feat: downscoping with credential access boundaries

* fix: rename RefreshableOAuth2Credentials to OAuth2CredentialsWithRefresh

* fix: review nits

* test: adds integration tests for downscoping with credential access boundaries

* fix: use source credential expiration when STS does not return expires_in

* fix: require an expiration time to be passed in the AccessToken consumed by OAuth2CredentialsWithRefresh

Co-authored-by: Elliotte Rusty Harold <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

2 more reviewers
@elharo elharo elharo left review comments
@TimurSadykov TimurSadykov TimurSadykov approved these changes
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.

Projects

None yet

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.

3 participants

@lsirac @elharo @TimurSadykov
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.
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.