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('django_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.4.tar.gz (11.1 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.4-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_auth_app-0.2.4.tar.gz
  • Upload date:
  • Size: 11.1 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.4.tar.gz
Algorithm Hash digest
SHA256 3bb8d2cd0495441f61b38f569445324fdeb418f4efd8c21b23343cdded7751f8
MD5 41fef2c3ebeeb053c89d69c52990798f
BLAKE2b-256 7e792d4f1606a06b951ff31a64b14232eaa35ec74e364a69047386b3bab18309

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_auth_app-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a16cb8600a1aa2906ebbfaf12bdacc5b56446e3b3f29edc7442c072ea6003992
MD5 c17e862a306a1db1186ce46a4fb9c6b6
BLAKE2b-256 cb0b98b9055458ecc3f1a6b333508858f79b4300e566fd550867d4d4cfa1389a

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