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.3.tar.gz (11.5 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.3-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_auth_app-0.2.3.tar.gz
  • Upload date:
  • Size: 11.5 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.3.tar.gz
Algorithm Hash digest
SHA256 a0065a097b2bb305950d7d9b5a76c4f396415d0630076daa49e3036482471398
MD5 262a8d2fdd4b5c3c0ad87e1792d138b5
BLAKE2b-256 0bdd66b623a14c4dd4f51397c289c74e6f8a6a944c30c8da16dfca9ac744c195

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_auth_app-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e2842bcf0abf178f9bdca6263e67edc0e59367994d353690b7b233336ec41b5a
MD5 8c739c54afdf4037c415a94253809c87
BLAKE2b-256 043eda5d151ee39ffc508e47c7d6d2db0d0862f0f48805d2688e6e8344e2ecf4

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