-
Notifications
You must be signed in to change notification settings - Fork 371
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
[FR] add support for reusing firebase-tools credentials #647
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
I don't see a ton of usage since this will only help developers running the SDK locally. If we make the existing In any case, I was under the impression that the Firebase CLI uses the same credentials as the gcloud SDK. Is that not the case? @ryanpbrewster what do you think? |
@hiranya911 another option could be to have firebase-tools store its credentials in the ADC format (i.e: same as gcloud), That would have the benefit to stick to the standard and works out of the box with |
@samtstern wdyt? Does it make sense to change either the SDK or the CLI to support a common credentials format? |
We have already formalized the hack @proppy suggested for use inside the Functions emulator: We set
|
Closing since I don't see any action items for this repo. There may be some possible ideas for improvements in firebase-tools, but that should be reported and addressed separately in the correct GitHub repo. |
firebase-admin already lookup gcloud application default credentials out of the box:
firebase-admin-node/src/auth/credential.ts
Line 45 in 1a7f722
It would awesome if it could also look up
firebase-tools
credentials in a similar fashion, so that:could just work for `firebase-tools users without requiring the user to install gcloud or download service account key to their development environment.
Note you can workaround this today by doing:
But it seems quite fragile if
firebase-tools
ever decide to change the location of the refresh token / client id / secret.The text was updated successfully, but these errors were encountered: