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: Adds support for STS response not returning expires_in field. #1216

Merged
merged 23 commits into from Aug 4, 2021

Conversation

xil222
Copy link
Contributor

@xil222 xil222 commented Jul 21, 2021

stsResponse doesnt return expire_in if subject_token isnt service account access token.
Change the expire_in field to optional and add changes to downscopedclient and baseexternalclient.
bug: b/193924974
Your feedback is greatly appreciated! @bojeil-google @bcoe

@xil222 xil222 requested a review from a team as a code owner July 21, 2021 18:35
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Jul 21, 2021
@xil222 xil222 changed the title feat: Adds support for stsResponse doesnt return expiry time. feat: Adds support for STS response not returning expires_in field. Jul 21, 2021
@xil222 xil222 changed the title feat: Adds support for STS response not returning expires_in field. fix: Adds support for STS response not returning expires_in field. Jul 21, 2021
@xil222 xil222 changed the title fix: Adds support for STS response not returning expires_in field. feat: Adds support for STS response not returning expires_in field. Jul 21, 2021
@bcoe bcoe added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 22, 2021
src/auth/downscopedclient.ts Show resolved Hide resolved
test/test.baseexternalclient.ts Outdated Show resolved Hide resolved
test/test.downscopedclient.ts Outdated Show resolved Hide resolved
test/test.downscopedclient.ts Show resolved Hide resolved
bcoe and others added 11 commits July 29, 2021 15:11
* fix: update TODO section

* remove origin

* Update idtokens-serverless.js
@xil222 xil222 requested a review from a team as a code owner July 29, 2021 22:36
@generated-files-bot
Copy link

Warning: This pull request is touching the following templated files:

@snippet-bot
Copy link

snippet-bot bot commented Jul 29, 2021

No region tags are edited in this PR.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@google-cla
Copy link

google-cla bot commented Jul 29, 2021

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@google-cla google-cla bot added cla: no This human has *not* signed the Contributor License Agreement. and removed cla: yes This human has signed the Contributor License Agreement. labels Jul 29, 2021
@google-cla
Copy link

google-cla bot commented Jul 30, 2021

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@google-cla
Copy link

google-cla bot commented Jul 30, 2021

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

Copy link
Contributor

@bojeil-google bojeil-google left a comment

Choose a reason for hiding this comment

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

Thanks for putting this together. I mostly have suggestions and propose tweaks to the unit tests.

test/test.baseexternalclient.ts Show resolved Hide resolved
test/test.downscopedclient.ts Outdated Show resolved Hide resolved
test/test.downscopedclient.ts Show resolved Hide resolved
test/test.downscopedclient.ts Outdated Show resolved Hide resolved
test/test.downscopedclient.ts Outdated Show resolved Hide resolved
test/test.downscopedclient.ts Outdated Show resolved Hide resolved
test/test.downscopedclient.ts Outdated Show resolved Hide resolved
test/test.downscopedclient.ts Outdated Show resolved Hide resolved
@google-cla
Copy link

google-cla bot commented Aug 3, 2021

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

test/test.downscopedclient.ts Outdated Show resolved Hide resolved
test/test.baseexternalclient.ts Show resolved Hide resolved
@google-cla
Copy link

google-cla bot commented Aug 4, 2021

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@bcoe bcoe 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 Aug 4, 2021
@google-cla
Copy link

google-cla bot commented Aug 4, 2021

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@google-cla google-cla bot added cla: no This human has *not* signed the Contributor License Agreement. and removed cla: yes This human has signed the Contributor License Agreement. labels Aug 4, 2021
@bcoe bcoe added cla: yes This human has signed the Contributor License Agreement. owlbot:run Add this label to trigger the Owlbot post processor. kokoro:force-run Add this label to force Kokoro to re-run the tests. and removed cla: no This human has *not* signed the Contributor License Agreement. labels Aug 4, 2021
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 4, 2021
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Aug 4, 2021
@bcoe bcoe merged commit 24bb456 into googleapis:master Aug 4, 2021
gcf-merge-on-green bot pushed a commit that referenced this pull request Aug 4, 2021
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.

None yet

6 participants