Skip to main content

An app to manage easily the authentication in Rest API.

Project description

DJANGO-RESTFRAMEWORK-AUTHENTICATION

DJANGO-RESTFRAMEWORK-AUTHENTICATION is an app to manage easily the authentication in Rest API. This library supports classical Django’s and Json Web Token authentication, moreover it manages Google 0Auth 2.0

Quick start

  1. Add “authentication” to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...,
        "rest_framework",
        "authentication",
    ]
    
    If you are using JWT add "rest_framework_simplejwt"::
    
        INSTALLED_APPS = [
            ...,
            "rest_framework",
            "authentication",
            "rest_framework_simplejwt",
        ]
  2. Include the “authentication” URLconf in your project urls.py like this:

    path("api/", include("authentication.urls")),

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-authentication-0.1.tar.gz (5.1 kB view hashes)

Uploaded Source

Supported by

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