rest-firebase: Missing claim 'kid' in auth header.
On Firebase 3.0 I get an error "Missing claim 'kid' in auth header."
Apparently now Firebase requires private key’s id supplied with claims.
About this issue
- Original URL
- State: open
- Created 8 years ago
- Comments: 23 (7 by maintainers)
Commits related to this issue
- try to adopt firebase 3.0 #12 — committed to CodementorIO/rest-firebase by godfat 8 years ago
It didn’t work for me either. However, I tried to put a
kidinto JWT header, then Firebase would give me:I tried to give
private_key_id,project_id,client_id, but none of them worked. Oh silly kid. Please stop kidding me.For future reference.
I got Firebase 3.0 working like this:
You get this service account manifest JSON through Google’s IAM console.
My other findings:
expparameter and sets/forces it to 1 hour, regardless what you put there, I tried to get it to 30 min but when you read the token back after authenticating, it’s 3600 seconds.'https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyCustomToken?key=...'in your browser’s dev tools. If the token was OK, it returns when it expires (3600 seconds) and arefreshToken(couldn’t find what this is for).initializeApp)Hope this helps.