Reputation: 583
I have a backend server created in a language that does not support any of Firebase ADM SDK languages (java, Python, Node.js,Go, C#) . So after the app client get the ID Token from Firebase Authentication, it sends this ID Token to the backend and then it will be necessary to validate this ID Token.
By checking deeply Firebase Documentation I could not find a reference for any Firebase API that performs such ID Token verification. It only refers to Firebase ADM SDK methods.
My questions are :
a) Is that possible to verify thi ID Token through a REST API provided by Firebase Authentication services ?
b) What APIT/Endpoint is avalilabe for that ?
Thanks !
Upvotes: 1
Views: 1615
Reputation: 317412
Read the documentation on the matter.
Verify ID tokens using a third-party JWT library
If your backend is in a language not supported by the Firebase Admin SDK, you can still verify ID tokens. First, find a third-party JWT library for your language. Then, verify the header, payload, and signature of the ID token.
The token is just a JWT. You can use any library that understands how to process a JWT. There is no need to call an endpoint. You will have to write code to examine the contents of the JWT as further described in the linked documentation.
Upvotes: 2