wesleylima / django-rest-framework-firebase

Use Firebase to authenticate requests to your Django Rest Framework project
32 stars 14 forks source link

Support default configuration #8

Closed milkcocoa closed 5 years ago

milkcocoa commented 5 years ago

I am planning to use this middleware on our GAE standard v2 app.

According the following document, when firebase_admin.initialize_app is passed with no credentials, it configures itself appropriately with Application Default Credentials. GAE standard v2 supports this Application Default Credentials.

https://firebase.google.com/docs/reference/admin/python/firebase_admin#initialize_app

So, I've added an alternative configuration for without any credentials.