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 your admin credentials .json from the Firebase SDK and add them to your project
FIREBASE_AUTH = {
"SERVICE_ACCOUNT_KEY_FILE" = "path_to_your_credentials.json"
}
The django-rest-firebase-auth comes with the following settings as default, which can be overridden in your project's settings.py.
FIREBASE_AUTH = {
"SERVICE_ACCOUNT_KEY_FILE": "",
# require that user has verified their email
"EMAIL_VERIFICATION": False
}
Metadata
Release files for django-rest-firebase-auth 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-rest-firebase-auth-0.2.0.tar.gz | 7.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_rest_firebase_auth-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.7 kB
Release files / django-rest-firebase-auth-0.2.0.tar.gz
| Download URL | django-rest-firebase-auth-0.2.0.tar.gz |
|---|---|
| Size | 7.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bde83251aa71413018b068e81a295ec8007a546dcffd2d2aea6dbe4f59e6bb86
|
|
BLAKE2b-256 checksum How to use checksums |
3fc93bdffd6b072a6043374ee447e8b9a9560a5b6b1c8dabd2d8cff7ccae6ff0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
|
Release files / django_rest_firebase_auth-0.2.0-py3-none-any.whl
| Download URL | django_rest_firebase_auth-0.2.0-py3-none-any.whl |
|---|---|
| Size | 11.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c0342775475f3b51e5b31ab1d8796b48be2c94a0a1597609aef5d7c92295e2f4
|
|
BLAKE2b-256 checksum How to use checksums |
2492cef1df6d1565f04391d83e20b0e9998d318b06133425a419227db4f58f6f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
|