Firebase authentication for Django REST framework
Project description
Django Rest Firebase Auth
Use firebase authentication with your django rest framework project
Requirements
- Python (3.5, 3.6, 3.7 or 3.8)
- Django >= 2.2
- Django Rest Framework
Installation
pip install django-rest-firebase-auth
On your project's settings.py
add this to the REST_FRAMEWORK
configuration
REST_FRAMEWORK = {
...
'DEFAULT_AUTHENTICATION_CLASSES': [
'firebase_auth.authentication.FirebaseAuthentication'
]
...
}
Get admin credentials .json
from the Firebase SDK and add them to your project
Also in your project's settings.py
:
FIREBASE_APP_CREDENTIALS = 'path_to_your_credentials.json'
if you want to allow only users with verified emails
FIREBASE_EMAIL_VERIFICATION = True
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-rest-firebase-auth-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 159edcda091cd37b43e3e510618a36ed5704d3fb17f02881686383511a8bd882 |
|
MD5 | fc80f8f1833f972378445e7dc2c3fc3e |
|
BLAKE2b-256 | 90f1916aed8cc46ab739c981bff3b85c402955ec637fd7c19af2f3a456e66ba7 |
Close
Hashes for django_rest_firebase_auth-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b4f6adabe6d064a830c5118f16dd6cb48909fafd11825a4bc1b71d51f8403aa |
|
MD5 | c1c2c5a1c87e19f012d7b0cf57888400 |
|
BLAKE2b-256 | 3b515f139d5bfb5c79f617e3810e09a598def4d1234f883aa8b8d71061834ba6 |