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: add Id token support for UserCredentials by TimurSadykov · Pull Request #650 · googleapis/google-auth-library-java

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

Conversation

@TimurSadykov

@TimurSadykov TimurSadykov commented May 6, 2021 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #492 ☕️
Fixes #468
Fixes #157

Sorry, something went wrong.

Uh oh!

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

All reactions
Timur Sadykov and others added 4 commits May 5, 2021 17:14
Timur Sadykov
new adapter for idtoken
cb3866e
stim
Merge remote-tracking branch 'origin/master' into idtoken-cloudrun
ef781ec
stim
poc of the IdtokenProvider implementation for UserCredentials
9def95a
stim
removing HttpUserCredentialsAdapter as we go with IdTokenProvider app…
3096bd0
…roach
@google-cla

google-cla Bot commented May 6, 2021

Copy link
Copy Markdown

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

All reactions

Sorry, something went wrong.

Uh oh!

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

@google-cla google-cla Bot added the cla: no This human has *not* signed the Contributor License Agreement. label May 6, 2021
@TimurSadykov
TimurSadykov requested review from arithmetic1728 and silvolu May 6, 2021 09:06
@arithmetic1728 arithmetic1728 changed the title Id token support for UserCredentials feat: add Id token support for UserCredentials May 7, 2021
stim
Merge remote-tracking branch 'origin/master' into idtoken-cloudrun
164821e
@google-cla google-cla Bot added cla: yes This human has signed the Contributor License Agreement. and removed cla: no This human has *not* signed the Contributor License Agreement. labels May 11, 2021
stim
fix build
74b0994
@codecov

codecov Bot commented May 11, 2021 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

Codecov Report

Merging #650 (bce601b) into master (292e81a) will decrease coverage by 0.33%.
The diff coverage is 56.00%.

❗ Current head bce601b differs from pull request most recent head 9877f93. Consider uploading reports for the commit 9877f93 to get more accurate results
Impacted file tree graph

@@             Coverage Diff              @@
##             master     #650      +/-   ##
============================================
- Coverage     83.59%   83.25%   -0.34%     
- Complexity      606      607       +1     
============================================
  Files            42       42              
  Lines          2712     2724      +12     
  Branches        289      291       +2     
============================================
+ Hits           2267     2268       +1     
- Misses          303      313      +10     
- Partials        142      143       +1     
Impacted Files Coverage Δ
...ava/com/google/auth/oauth2/IdTokenCredentials.java 76.47% <0.00%> (-10.20%) ⬇️
...p/java/com/google/auth/oauth2/UserCredentials.java 76.66% <66.66%> (-3.62%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b001f71...9877f93. Read the comment docs.

All reactions

Sorry, something went wrong.

Uh oh!

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

Timur Sadykov and others added 7 commits May 11, 2021 00:50
Timur Sadykov
linter fixes
195e37f
Timur Sadykov
linter fixes
9a0a669
Timur Sadykov
actual linter fixes
bce601b
stim
unit tests for idtoken
c1ea597
stim
Merge branch 'idtoken-cloudrun' of https://github.com/googleapis/goog…
83cbd33
…le-auth-library-java into idtoken-cloudrun
stim
linter fixes
21b1c79
stim
Merge remote-tracking branch 'origin/master' into idtoken-cloudrun
2a997aa
@silvolu
silvolu requested a review from Neenu1995 May 17, 2021 19:11
silvolu
silvolu suggested changes May 17, 2021
View reviewed changes
Comment thread oauth2_http/java/com/google/auth/oauth2/IdTokenCredentials.java Resolved

Uh oh!

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

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

Uh oh!

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

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

Uh oh!

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

Comment thread oauth2_http/javatests/com/google/auth/oauth2/UserCredentialsTest.java Resolved

Uh oh!

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

TimurSadykov added 2 commits May 18, 2021 04:03
TimurSadykov
comments addressed
58f0c48
Timur Sadykov
Merge branch 'master' into idtoken-cloudrun
9b2b10d
@TimurSadykov
TimurSadykov marked this pull request as ready for review May 18, 2021 11:22
@TimurSadykov
TimurSadykov requested a review from a team May 18, 2021 11:22
silvolu
silvolu approved these changes May 19, 2021
View reviewed changes
Timur Sadykov added 2 commits May 20, 2021 12:50
Timur Sadykov
Merge remote-tracking branch 'origin/master' into idtoken-cloudrun
308670d
Timur Sadykov
Merge remote-tracking branch 'origin/master' into idtoken-cloudrun
ded1cb9
Timur Sadykov added 4 commits May 24, 2021 16:19
Timur Sadykov
remove redundant idtoken refresh
85114c4
Timur Sadykov
fix of removing redundant idtoken referesh
5ab8df6
TimurSadykov
fix tests
5dc530e
TimurSadykov
Merge branch 'idtoken-cloudrun' of https://github.com/googleapis/goog…
903058c
…le-auth-library-java into idtoken-cloudrun
elharo
elharo reviewed May 25, 2021
View reviewed changes
Comment thread oauth2_http/javatests/com/google/auth/oauth2/UserCredentialsTest.java Resolved

Uh oh!

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

TimurSadykov added 2 commits May 26, 2021 00:33
TimurSadykov
null check and more docs
cf6cbb2
TimurSadykov
Merge remote-tracking branch 'origin/master' into idtoken-cloudrun
9877f93
elharo
elharo approved these changes May 26, 2021
View reviewed changes
@TimurSadykov
TimurSadykov merged commit 5a8f467 into master May 26, 2021
@TimurSadykov
TimurSadykov deleted the idtoken-cloudrun branch May 26, 2021 21:29
@TimurSadykov TimurSadykov mentioned this pull request Jun 11, 2021
feat: idtoken user credential #469
Closed
gcf-merge-on-green Bot pushed a commit that referenced this pull request Jul 14, 2021
@release-please
chore: release 0.27.0 (#678)
90c24b1
🤖 I have created a release \*beep\* \*boop\*
---
## [0.27.0](https://www.github.com/googleapis/google-auth-library-java/compare/v0.26.0...v0.27.0) (2021-07-14)


### Features

* add Id token support for UserCredentials ([#650](https://www.github.com/googleapis/google-auth-library-java/issues/650)) ([5a8f467](https://www.github.com/googleapis/google-auth-library-java/commit/5a8f4676630854c53aa708a9c8b960770067f858))
* add impersonation credentials to ADC  ([#613](https://www.github.com/googleapis/google-auth-library-java/issues/613)) ([b9823f7](https://www.github.com/googleapis/google-auth-library-java/commit/b9823f70d7f3f7461b7de40bee06f5e7ba0e797c))
* Adding functional tests for Service Account  ([#685](https://www.github.com/googleapis/google-auth-library-java/issues/685)) ([dfe118c](https://www.github.com/googleapis/google-auth-library-java/commit/dfe118c261aadf137a3cf47a7acb9892c7a6db4d))
* allow scopes for self signed jwt ([#689](https://www.github.com/googleapis/google-auth-library-java/issues/689)) ([f4980c7](https://www.github.com/googleapis/google-auth-library-java/commit/f4980c77566bbd5ef4c532acb199d7d484dbcd01))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
lsirac added a commit that referenced this pull request Jul 22, 2021
@lsirac Timur Sadykov
@arithmetic1728 @release-please
test: adds integration tests for downscoping with credential access b…
b26f8a4
…oundaries (#698)

* feat: Adding functional tests for Service Account  (#685)

ServiceAccountCredentials tests for 4110

* feat: allow scopes for self signed jwt (#689)

* feat: self signed jwt support

* update

* address comments

* allow to use uri as audience

* address comments

* chore: release 0.27.0 (#678)

:robot: I have created a release \*beep\* \*boop\*
---
## [0.27.0](https://www.github.com/googleapis/google-auth-library-java/compare/v0.26.0...v0.27.0) (2021-07-14)


### Features

* add Id token support for UserCredentials ([#650](https://www.github.com/googleapis/google-auth-library-java/issues/650)) ([5a8f467](https://www.github.com/googleapis/google-auth-library-java/commit/5a8f4676630854c53aa708a9c8b960770067f858))
* add impersonation credentials to ADC  ([#613](https://www.github.com/googleapis/google-auth-library-java/issues/613)) ([b9823f7](https://www.github.com/googleapis/google-auth-library-java/commit/b9823f70d7f3f7461b7de40bee06f5e7ba0e797c))
* Adding functional tests for Service Account  ([#685](https://www.github.com/googleapis/google-auth-library-java/issues/685)) ([dfe118c](https://www.github.com/googleapis/google-auth-library-java/commit/dfe118c261aadf137a3cf47a7acb9892c7a6db4d))
* allow scopes for self signed jwt ([#689](https://www.github.com/googleapis/google-auth-library-java/issues/689)) ([f4980c7](https://www.github.com/googleapis/google-auth-library-java/commit/f4980c77566bbd5ef4c532acb199d7d484dbcd01))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).

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

Co-authored-by: Timur Sadykov <[email protected]>
Co-authored-by: arithmetic1728 <[email protected]>
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
lsirac added a commit that referenced this pull request Jul 26, 2021
@lsirac Timur Sadykov
@arithmetic1728 @release-please
fix: use source credential expiration when STS does not return expire…
4b23843
…s_in (#699)

* feat: Adding functional tests for Service Account  (#685)

ServiceAccountCredentials tests for 4110

* feat: allow scopes for self signed jwt (#689)

* feat: self signed jwt support

* update

* address comments

* allow to use uri as audience

* address comments

* chore: release 0.27.0 (#678)

:robot: I have created a release \*beep\* \*boop\*
---
## [0.27.0](https://www.github.com/googleapis/google-auth-library-java/compare/v0.26.0...v0.27.0) (2021-07-14)


### Features

* add Id token support for UserCredentials ([#650](https://www.github.com/googleapis/google-auth-library-java/issues/650)) ([5a8f467](https://www.github.com/googleapis/google-auth-library-java/commit/5a8f4676630854c53aa708a9c8b960770067f858))
* add impersonation credentials to ADC  ([#613](https://www.github.com/googleapis/google-auth-library-java/issues/613)) ([b9823f7](https://www.github.com/googleapis/google-auth-library-java/commit/b9823f70d7f3f7461b7de40bee06f5e7ba0e797c))
* Adding functional tests for Service Account  ([#685](https://www.github.com/googleapis/google-auth-library-java/issues/685)) ([dfe118c](https://www.github.com/googleapis/google-auth-library-java/commit/dfe118c261aadf137a3cf47a7acb9892c7a6db4d))
* allow scopes for self signed jwt ([#689](https://www.github.com/googleapis/google-auth-library-java/issues/689)) ([f4980c7](https://www.github.com/googleapis/google-auth-library-java/commit/f4980c77566bbd5ef4c532acb199d7d484dbcd01))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).

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

* fix: STS does not always return expires_in, fallback to source credential expiration for DownscopedCredentials

* fix: review

Co-authored-by: Timur Sadykov <[email protected]>
Co-authored-by: arithmetic1728 <[email protected]>
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
@steeve steeve mentioned this pull request Nov 4, 2021
Id tokens support for Google Credentials bazelbuild/bazel#12135
Closed
@release-please release-please Bot mentioned this pull request Jan 4, 2022
chore(main): release google-auth-library-java 1.0.0 #819
Closed
@release-please release-please Bot mentioned this pull request Aug 11, 2022
chore(main): release 1.11.0 #974
Merged
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@arithmetic1728 arithmetic1728 Awaiting requested review from arithmetic1728
@Neenu1995 Neenu1995 Awaiting requested review from Neenu1995
2 more reviewers
@silvolu silvolu silvolu approved these changes
@elharo elharo elharo 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.

feat: Generate id_token with user credential Add id_token capability on User Credential Why does UserCredentials use access_token?

Uh oh!

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

3 participants

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