Hello,
Does anyone know how to create a Firebase JWT 'ID Token' so I can test my server-side authentication processes?I can create JWT's using third-party apps, but they need a Private Key - which I don't seem to be able to get at.
The Public Keys are available here : https://www.googleapis.com/robot/v1/metadata/x509/securetoken@system.gserviceaccount.com - but they change regularly - I assume I need a Private Key as regularly as those Public ones change?
So, I need access to my (or Google's) Firebase Private Keys to match the ever changing Public Keys (for testing) or is there another way?Any thoughts most appreciated!Cheers,
--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/d64f25b3-276e-4115-a0ae-9f6d068c66ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
ID tokens can only be minted by Firebase backend servers. As you have already observed, they are signed by Google private keys. It's not entirely clear what you're trying to achieve, but there's a way to obtain an ID token from a custom token.You can mint a custom token using an Admin SDK, and then exchange it to an ID token by making a REST call to Google identity toolkit. See the bit of code at: https://github.com/firebase/firebase-admin-python/blob/master/integration/test_auth.py#L24You will need the API key of your Firebase project.Thanks,Hiranya
On Tue, Jul 18, 2017 at 9:24 AM, <andy....@rokdevelopment.com> wrote:
Hello,Does anyone know how to create a Firebase JWT 'ID Token' so I can test my server-side authentication processes?I can create JWT's using third-party apps, but they need a Private Key - which I don't seem to be able to get at.The Public Keys are available here : https://www.googleapis.com/robot/v1/metadata/x509/securetoken@system.gserviceaccount.com - but they change regularly - I assume I need a Private Key as regularly as those Public ones change?So, I need access to my (or Google's) Firebase Private Keys to match the ever changing Public Keys (for testing) or is there another way?Any thoughts most appreciated!Cheers,
--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/d64f25b3-276e-4115-a0ae-9f6d068c66ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.