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 django_auth_app to your INSTALLED_APPS in Django settings:

    # settings.py
    INSTALLED_APPS = [
        ...
        'django_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.2.tar.gz (11.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.2-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_auth_app-0.2.2.tar.gz
  • Upload date:
  • Size: 11.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.2.tar.gz
Algorithm Hash digest
SHA256 b4c1896f568c22cb2ad6b2c552a512c56c36d9effe2f0383790baac175ac64f7
MD5 0cb4a677889a60e3633f433556028cd7
BLAKE2b-256 54c253a3bc90b66c68b17e4699f5e2f1ea89ada043120e16d9f35a5d811581c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_auth_app-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 830ffa04cfdf40a57b9d5073f9a8f4c45e55cc17757ff7696d1cbfcb2f174c9c
MD5 d74dc1a34616dddf96ed26ac4c6d17d0
BLAKE2b-256 7387d23a20e566a4e25d1f06ffb1bee04e5d6d7d49c8e210ea9cf0113c107f73

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