Skip to main content

Firebase based authentication for Django REST framework

Project description

# Django Rest Framework Firebase Auth

## Installation

```
pip install djangorestframework-firebase
```

On your project's `settings.py` add this to the `REST_FRAMEWORK` configuration

```
REST_FRAMEWORK = {
...
'DEFAULT_AUTHENTICATION_CLASSES': (
'rest_framework_firebase.authentication.FirebaseAuthentication',
)
...
}
```

Get admin credentials `.json` from the Firebase SDK and add them to your project

Also in your project's `settings.py` :

```
FIREBASE_AUTH = {
'FIREBASE_ACCOUNT_KEY_FILE': 'path_to_your_credentials.json',
}
```

## Publishing

`python setup.py sdist`

`twine upload dist/*`

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

djangorestframework-firebase-0.1.3.tar.gz (4.2 kB view details)

Uploaded Source

File details

Details for the file djangorestframework-firebase-0.1.3.tar.gz.

File metadata

File hashes

Hashes for djangorestframework-firebase-0.1.3.tar.gz
Algorithm Hash digest
SHA256 4b14a242faeef1951d4e2431efc0dbfb9099bab944ae3e8ac91c191b5ae394fc
MD5 b259b478df2011829b6f8ea4a9fbdfc3
BLAKE2b-256 9622e417b43e0ecb3c5a0507081b7228d1c6d839dbbbc89d91afa68378affac7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page