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: use self-signed JWTs if alwaysUseJWTAccessWithScope is true #1196

Merged
merged 31 commits into from
Aug 30, 2021

Conversation

sofisl
Copy link
Contributor

@sofisl sofisl commented Jun 23, 2021

Work for the self-signed JWT implementation
In conjunction with: googleapis/gapic-generator-typescript#908

@sofisl sofisl requested a review from a team as a code owner June 23, 2021 16:48
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Jun 23, 2021
@sofisl sofisl added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Jun 23, 2021
@sofisl
Copy link
Contributor Author

sofisl commented Jun 23, 2021

Still need to add tests

.gitignore Outdated Show resolved Hide resolved
src/auth/googleauth.ts Outdated Show resolved Hide resolved
src/auth/googleauth.ts Outdated Show resolved Hide resolved
src/auth/jwtclient.ts Outdated Show resolved Hide resolved
src/auth/jwtclient.ts Outdated Show resolved Hide resolved
src/auth/googleauth.ts Outdated Show resolved Hide resolved
src/auth/jwtclient.ts Outdated Show resolved Hide resolved
test/test.googleauth.ts Outdated Show resolved Hide resolved
@sofisl
Copy link
Contributor Author

sofisl commented Jul 2, 2021

@bcoe @JustinBeckwith, comments have been addressed & tests added!

@bcoe bcoe added the owlbot:run Add this label to trigger the Owlbot post processor. label Jul 2, 2021
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Jul 2, 2021
@sofisl sofisl requested a review from a team as a code owner July 29, 2021 19:14
Copy link
Contributor

@bcoe bcoe left a comment

Choose a reason for hiding this comment

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

To me this is looking really good, and I think the tests are comprehensive.

It would be good to have Brent do one more sniff test.

@bcoe bcoe removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Aug 26, 2021
src/auth/jwtaccess.ts Outdated Show resolved Hide resolved
src/auth/jwtclient.ts Outdated Show resolved Hide resolved
src/auth/jwtclient.ts Outdated Show resolved Hide resolved
src/auth/jwtclient.ts Outdated Show resolved Hide resolved
test/test.jwt.ts Outdated Show resolved Hide resolved
src/auth/jwtaccess.ts Outdated Show resolved Hide resolved
src/auth/jwtaccess.ts Outdated Show resolved Hide resolved
src/auth/jwtclient.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@bcoe bcoe left a comment

Choose a reason for hiding this comment

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

we have a final session planned Monday to get this over finish line.

bcoe and others added 2 commits August 30, 2021 15:30
Co-authored-by: Brent Shaffer <betterbrent@google.com>
test/test.jwt.ts Outdated Show resolved Hide resolved
@google-cla
Copy link

google-cla bot commented Aug 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 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 30, 2021
@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 30, 2021
Copy link
Contributor

@bshaffer bshaffer left a comment

Choose a reason for hiding this comment

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

One question, otherwise this looks amazing!

src/auth/jwtclient.ts Show resolved Hide resolved
@sofisl sofisl changed the title feat: add logic to self-signed JWTs if alwaysUseJWTAccess is true feat: use self-signed JWTs if alwaysUseJWTAccessWithScope is true Aug 30, 2021
@sofisl sofisl merged commit ad3f652 into master Aug 30, 2021
@sofisl sofisl deleted the selfSignedWork branch August 30, 2021 20:36
gcf-merge-on-green bot pushed a commit that referenced this pull request Aug 30, 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

5 participants