Firebase Google Auth via Postman

1,178 views
Skip to first unread message

AM

unread,
Jun 29, 2019, 2:11:12 AM6/29/19
to Firebase Google Group
I have a firebase project with a working Auth via GoogleAuthProvider using auth().signInWithPopup.

I am able to write html/js sample to get token, send it as bearer and parse in my Google Cloud Function. However, I did not find instructions of how to achieve this via POSTMAN.

If I extract the tokenId from my html page, and paste in postman it works (until it expires).
I was hoping there is an easy way from within Postman Auth, e.g. to use OAuth 2.0 and get a token from within Postman, and then use that for my subsequent postman calls.

If someone can point me to specific instructions that would be appreciated.

Thanks




Kato Richardson

unread,
Jun 30, 2019, 2:06:33 PM6/30/19
to Firebase Google Group
Hello AM,

I don't see any way to make this work via Postman. You could probably fetch the OAuth 2.0 token from Google Oauth just fine, but you still need to make an API call in order to convert that into a Firebase Auth ID token. And that doesn't look possible. So you'd probably need to fetch a new Firebase Auth ID token token each time it expires using the web SDK.

☼, Kato

--
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/c4d218e2-53fc-466a-894f-230f9ad1ac71%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--

Kato Richardson | Developer Programs Eng | kato...@google.com | 775-235-8398

Reply all
Reply to author
Forward
0 new messages