wesleylima / django-rest-framework-firebase

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

Allow configuration from Django without .json file #4

Closed pm990320 closed 5 years ago

pm990320 commented 6 years ago

Hello,

I have added FIREBASE_CREDENTIALS as a config variable so that you can pass the config in via Django. I saw that you had this as a TODO so thought I'd contribute it.

Use case: Heroku does secrets as environment variables, ideally I want to populate the Firebase config using calls to os.getenv() in settings.py rather than by creating a non-git tracked file.

Thanks,

Patrick