Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Firebase authentication for Django REST framework

Project description

Django Rest Firebase Auth

Use firebase authentication with your django rest framework project

codecov

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
}

Project details


Download files

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

Files for django-rest-firebase-auth, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size django_rest_firebase_auth-0.2.0-py3-none-any.whl (11.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size django-rest-firebase-auth-0.2.0.tar.gz (7.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page