Skip to content

A simple python library for verifying Firebase id tokens in Google AppEngine

License

Notifications You must be signed in to change notification settings

bobobobo/gae-firebase-idtoken

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gae-firebase-idtoken

A small Python library to verify ID tokens from Firebase Authentication in Google AppEngine. The certificates used for verification are cached using memcache.

Prerequisites

This library requires Google App Engine client library (for memcache) and PyJWT (used for JWT parsing)

Installation

$ pip install firebase_idtoken

Please read https://cloud.google.com/appengine/docs/python/tools/using-libraries-python-27 for instructions how to include the library in your Google App Engine application.

Verifying tokens

from firebase_idtoken import verify_token

result = verify_token("<TOKEN>", "<AUDIENCE>")

The result is a dictionary with the payload. If the token cannot be verified an exception will be raised.

About

A simple python library for verifying Firebase id tokens in Google AppEngine

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages