-
Notifications
You must be signed in to change notification settings - Fork 55
feat(auth): add external account url sourced credentials #2217
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
base: main
Are you sure you want to change the base?
Changes from all commits
57b4264
f11ee98
b2ba552
055990d
84b81e0
42e989f
fca8675
ad56efd
041003b
39c0e18
06534a4
3b84492
c859658
e8d2371
99c140b
6917c63
e059453
9b434fe
80afb38
1d8ea19
e4601c2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,9 @@ pub mod mds; | |
pub mod service_account; | ||
pub mod user_account; | ||
|
||
pub mod external_account; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Lets keep this private until we figure out twosigma's requirements regarding openssl and custom request client. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The problem is that by doing that, I can't use the module on the auth integration tests. |
||
pub(crate) mod external_account_sources; | ||
|
||
pub(crate) mod internal; | ||
|
||
use crate::Result; | ||
|
@@ -534,6 +537,12 @@ fn build_credentials( | |
|b: service_account::Builder, s: Vec<String>| b | ||
.with_access_specifier(service_account::AccessSpecifier::from_scopes(s)) | ||
), | ||
"external_account" => config_builder!( | ||
external_account::Builder::new(json), | ||
quota_project_id, | ||
scopes, | ||
|b: external_account::Builder, s: Vec<String>| b.with_scopes(s) | ||
), | ||
_ => Err(errors::non_retryable_from_str(format!( | ||
"Invalid or unsupported credentials type found in JSON: {cred_type}" | ||
))), | ||
|
Uh oh!
There was an error while loading. Please reload this page.