How to use credentials of type external_account
?
#2816
Unanswered
BrummbaerFr
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there!
I have a usage question about how to authenticate with the Node.js Firebase admin SDK.
I am trying to use Workload Identity Federation credentials with AWS, ie. I have a JSON config which looks like this:
The format of this file is specified in AIP-4117.
According to this issue, it is now possible to use credentials of type
external_account
when usingapplicationDefault()
.I made sure that the
GOOGLE_APPLICATION_CREDENTIALS
variable is populated correctly.I tried using the following code:
... which gives this error:
Credential implementation provided to initializeApp() via the "credential" property failed to fetch a valid Google OAuth2 access token with the following error: "The caller does not have permission".
.I highly doubt I am missing permissions, since I was using the lower-level
google-auth-library
client to use Firebase Cloud Messaging, and it worked fine for months.Now that the Firebase admin SDK supports external account credentials, I wanted to give it a try to be able to use all the features, but I am having this issue.
Anything I might be missing, or doing wrong?
Any help is appreciated. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions