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(auth): add detect package #8491

Merged
merged 9 commits into from
Aug 29, 2023
Merged

feat(auth): add detect package #8491

merged 9 commits into from
Aug 29, 2023

Conversation

codyoss
Copy link
Member

@codyoss codyoss commented Aug 25, 2023

The purpose of this package is to source credentials via ADC. It is analogous to the oauth2/google package but is more limited, currently. It does not provide helper constructors for creating things like a compute credential and instead has a single constructor that does it all. Because of this it is more has more extensible options.

Purposefully missing from this package is support for external accounts, but some documentation is there. This will come up in a seperate PR as that has a lot of extra code to review and I tried to shrink the size of this commit as much as possible.

There are some TODOs in this commit that will be cleaned up in a future commit that requires more refactoring.

The purpose of this package is to source credentials via ADC. It
is analogous to the oauth2/google package but is more limited,
currently. It does not provide helper constructors for creating
things like a compute credential and instead has a single
constructor that does it all. Because of this it is more has more
extensible options.

Purposefully missing from this package is support for external
accounts, but some documentation is there. This will come up in a
seperate PR as that has a lot of extra code to review and I tried
to shrink the size of this commit as much as possible.

There are some TODOs in this commit that will be cleaned up in a
future commit that requires more refactoring.
@codyoss codyoss requested a review from a team as a code owner August 25, 2023 17:24
@product-auto-label product-auto-label bot added the size: xl Pull request size is extra large. label Aug 25, 2023
@quartzmo
Copy link
Member

apidiff error:

- AuthorizationHandlerOptions.PKCEConfig: removed
- PKCEConfig: removed
Error: Process completed with exit code 1.

@codyoss
Copy link
Member Author

codyoss commented Aug 28, 2023

@quartzmo on purpose, noticed this was missed from the last PR were we said to stop using the word config and consistently use options

auth/detect/compute.go Outdated Show resolved Hide resolved
auth/detect/compute.go Show resolved Hide resolved
auth/detect/compute_test.go Outdated Show resolved Hide resolved
auth/detect/detect.go Outdated Show resolved Hide resolved
auth/detect/detect.go Show resolved Hide resolved
auth/detect/filetypes.go Show resolved Hide resolved
auth/detect/internal/gdch/gdch.go Show resolved Hide resolved
auth/detect/internal/impersonate/impersonate.go Outdated Show resolved Hide resolved
auth/internal/internaldetect/internaldetect.go Outdated Show resolved Hide resolved
auth/internal/transport/transport.go Show resolved Hide resolved
auth/internal/internal.go Outdated Show resolved Hide resolved
Copy link
Member

@quartzmo quartzmo left a comment

Choose a reason for hiding this comment

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

Approved, with a couple very minor docs comments.

@codyoss codyoss enabled auto-merge (squash) August 29, 2023 19:59
@codyoss codyoss disabled auto-merge August 29, 2023 19:59
@codyoss codyoss merged commit d977419 into googleapis:main Aug 29, 2023
7 of 8 checks passed
@codyoss codyoss deleted the auth2 branch August 29, 2023 19:59
This was referenced Aug 29, 2023
codyoss added a commit to codyoss/google-cloud-go that referenced this pull request Aug 29, 2023
This is a direct followup to googleapis#8491 and adds the last part of the
detect package; external account support.
codyoss added a commit that referenced this pull request Sep 6, 2023
This is a direct follow up to #8491 and adds the last part of the detect package; external account support.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: xl Pull request size is extra large.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants