Skip to main content

A Django authentication boilerplate with OTP and role-based access control

Project description

Django Auth App

This Django Auth boilerplate provides basic authentication, OTP verification, and role-based access control for admin and customer users.

Features

  • User registration with OTP verification
  • Password reset with OTP
  • Role-based access control (Customer and Admin)
  • Swagger API documentation for easy API management and testing

Installation

  1. Install the package:

    pip install django-auth-app
    
  2. Add auth_app to your INSTALLED_APPS in Django settings:

    # settings.py
    INSTALLED_APPS = [
        ...
        'auth_app',
        ...
    ]
    
  3. Include the URLs in your urls.py:

    # urls.py
    from django.urls import path, include
    
    urlpatterns = [
        path('auth/', include('auth_app.urls')),
    ]
    
  4. Run migrations to create the necessary models:

    python manage.py migrate
    

Usage

This boilerplate includes user registration and authentication features out of the box. Role-based access control is applied to differentiate between admin and customer users. Use Swagger API documentation to explore the available endpoints.

License

This project is licensed under the MIT License.

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

django_auth_app-0.2.5.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_auth_app-0.2.5-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

Details for the file django_auth_app-0.2.5.tar.gz.

File metadata

  • Download URL: django_auth_app-0.2.5.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.2

File hashes

Hashes for django_auth_app-0.2.5.tar.gz
Algorithm Hash digest
SHA256 db66b1c1b6473655ce8a27864e524aa8a7adbc648961371534b53c7ca1864f56
MD5 de4745011816d351020e93b565169125
BLAKE2b-256 9b2834234baa78bdd144a550406b8cef95f4ca372f890e54ac43ddd175aecd53

See more details on using hashes here.

File details

Details for the file django_auth_app-0.2.5-py3-none-any.whl.

File metadata

File hashes

Hashes for django_auth_app-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f051115de3f4017ccf6baff48920929235d9be213ca47647e2be040c84c4e8ab
MD5 821fa07f154c98316de674fb991c78cc
BLAKE2b-256 eec07e4f0c80dc8894ba7d4bbae3b6bd3bdd40712d0ab1230e0fdd6465ae883f

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