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

Support authorized_user #113

Open
kosta opened this issue Jun 3, 2022 · 1 comment
Open

Support authorized_user #113

kosta opened this issue Jun 3, 2022 · 1 comment

Comments

@kosta
Copy link

kosta commented Jun 3, 2022

Would you be willing to support more authentication types? Especially authorized_user?

I wrote a small CLI tool that I like to run locally. It would be much easier to adopt if cloud-storage could leverage the existing authentication of the gcloud command-line tool, which seems to write ~/.config/gcloud/application_default_credentials.json with content like this:

{
  "client_id": "...some email",
  "client_secret": "...some random string",
  "quota_project_id": "...some project id",
  "refresh_token": "...some random string",
  "type": "authorized_user"
}

Would you be interested in a PR that is able to read this file instead of only ServiceAccounts?

(Skimming through the code, I would probably make ServiceAccount part of an enum that serde distinguishes by the type).

@ThouCheese
Copy link
Owner

ThouCheese commented Aug 25, 2022

Sure such a change would definitely be welcome! Although judging from #114 there is also demand for a more comprehensive way to customise authentication than just adding variants to the ServiceAccount data type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants