-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Internal improvements (builds on #77) #78
base: main
Are you sure you want to change the base?
Commits on Aug 18, 2023
-
Supporting service account key format OR user credential formats
This PR supports parsing both formats in either the `GOOGLE_APPLICATION_CREDENTIALS` env variable or the `~/.config/gcloud/application_default_credentials.json` file.
Configuration menu - View commit details
-
Copy full SHA for 925dbba - Browse repository at this point
Copy the full SHA 925dbbaView commit details -
Adding service account impersonation (waiting on djc#76)
This PR adds a new `ServiceAccount` format that takes credentials from `source_credentials: ServiceAccount` and then makes a request to get a service account token using those credentials. This also adds the ability to parse the token format created by `gcloud auth application-default login --impersonate-service-account <service account>`
Configuration menu - View commit details
-
Copy full SHA for baa65d3 - Browse repository at this point
Copy the full SHA baa65d3View commit details -
No longer require token_uri in CustomServiceAccount
This parameter should be optional and fall back to the default of "https://oauth2.googleapis.com/token". This is demonstrated here: https://github.com/golang/oauth2/blob/a835fc4358f6852f50c4c5c33fddcd1adade5b0a/google/google.go#L152
Configuration menu - View commit details
-
Copy full SHA for 8063616 - Browse repository at this point
Copy the full SHA 8063616View commit details -
Allowing UserCredentials to support an optional token_uri parameter
This comes from go source here: https://github.com/golang/oauth2/blob/a835fc4358f6852f50c4c5c33fddcd1adade5b0a/google/google.go#L181C22-L181C22
Configuration menu - View commit details
-
Copy full SHA for 71542d1 - Browse repository at this point
Copy the full SHA 71542d1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8576b2a - Browse repository at this point
Copy the full SHA 8576b2aView commit details -
- Sort scope vec before using it as a hashmap key. Vecs of scopes aren't dependent on order, so the hashmap key shouldn't be either - Reduce complexity by moving all calls to `token::from_string` to `token::new`
Configuration menu - View commit details
-
Copy full SHA for cd90392 - Browse repository at this point
Copy the full SHA cd90392View commit details -
Configuration menu - View commit details
-
Copy full SHA for 15a9d62 - Browse repository at this point
Copy the full SHA 15a9d62View commit details