C++ firebase admin - firebase_admin.initialize_app and auth.verify_id_token (server side code)

82 views
Skip to first unread message

Rajesh Bhardwaj

unread,
Jun 26, 2020, 11:26:41 PM6/26/20
to Firebase Google Group
Hello,
I have c++ server side code and I need to authenticate the user passed token. In python there is - 

firebase_admin.initialize_app - passing the credential file

and then I can do decoded_token = auth.verify_id_token(id_token) (by getting the authorization header) 

Is there a equivalent thing which I can use with c++ 

regards

Arthur Thompson

unread,
Jun 29, 2020, 1:37:47 PM6/29/20
to fireba...@googlegroups.com
Hi Rajesh,

Currently we don't have a c++ admin SDK. There is not equivalent to Python's verify_id_token. You could verify the token directly in c++ or you can use a function which could use the NodeJS Admin SDK to do the verification for you.

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/fa7246ad-fd44-492c-aa02-6a043dded23co%40googlegroups.com.

Rajesh Bhardwaj

unread,
Jul 26, 2020, 11:33:02 AM7/26/20
to Firebase Google Group
Hello
Can you please share how can we verify token directly in c++ , we need to get uid from token
Regards

Arthur Thompson

unread,
Jul 26, 2020, 12:54:00 PM7/26/20
to fireba...@googlegroups.com
Hi Rajesh,

See the docs for a description of how to verify a token with a 3rd party library.

--
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.
Reply all
Reply to author
Forward
0 new messages