Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat(oauth2): new library to create oauth2 tokens #12064

Merged
merged 6 commits into from
Jul 12, 2023

Conversation

coryan
Copy link
Contributor

@coryan coryan commented Jul 11, 2023

This is basically a wrapper around some classes in the rest_internal library. We need a new library because applications should not link rest_internal: all libraries with internal in their name are not part of the public API.

Fixes #11920


This change is Reviewable

@codecov
Copy link

codecov bot commented Jul 11, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.01 ⚠️

Comparison is base (60a52cb) 93.69% compared to head (8724b79) 93.68%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #12064      +/-   ##
==========================================
- Coverage   93.69%   93.68%   -0.01%     
==========================================
  Files        2012     2012              
  Lines      175674   175674              
==========================================
- Hits       164599   164588      -11     
- Misses      11075    11086      +11     

see 9 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@coryan coryan marked this pull request as ready for review July 11, 2023 13:13
@coryan coryan requested a review from a team as a code owner July 11, 2023 13:13
Copy link
Member

@scotthart scotthart left a comment

Choose a reason for hiding this comment

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

If we anticipate more public OAuth2 files/classes, should we consider adding a google/cloud/oauth2 directory for these to live in, as opposed to google/cloud?

Reviewable status: 0 of 14 files reviewed, all discussions resolved

@coryan coryan force-pushed the feat-introduce-access-token-generator branch from dc9a3a6 to d081031 Compare July 11, 2023 23:00
Copy link
Contributor Author

@coryan coryan left a comment

Choose a reason for hiding this comment

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

I am thinking about it. Sounds like a good idea. Let me do some other refactoring first and maybe discuss in the meeting tomorrow (won't merge until after that discussion).

Reviewed 11 of 13 files at r1, 1 of 1 files at r2, 2 of 2 files at r3, all commit messages.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @devbww)

Copy link
Contributor

@devbww devbww left a comment

Choose a reason for hiding this comment

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

Reviewed all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @coryan)

@coryan coryan force-pushed the feat-introduce-access-token-generator branch from d081031 to a4cc218 Compare July 12, 2023 15:39
Copy link
Contributor Author

@coryan coryan left a comment

Choose a reason for hiding this comment

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

I moved the code to google/cloud/oauth2. Let's discuss today.

Reviewed 11 of 11 files at r4, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @devbww)

@coryan coryan merged commit 154c283 into googleapis:main Jul 12, 2023
@coryan coryan deleted the feat-introduce-access-token-generator branch July 12, 2023 19:59
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create a public API to get access token
3 participants