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
-
Install the package:
pip install django-auth-app
-
Add
auth_appto yourINSTALLED_APPSin Django settings:# settings.py INSTALLED_APPS = [ ... 'auth_app', ... ]
-
Include the URLs in your
urls.py:# urls.py from django.urls import path, include urlpatterns = [ path('auth/', include('django_auth_app.urls')), ]
-
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3bb8d2cd0495441f61b38f569445324fdeb418f4efd8c21b23343cdded7751f8
|
|
| MD5 |
41fef2c3ebeeb053c89d69c52990798f
|
|
| BLAKE2b-256 |
7e792d4f1606a06b951ff31a64b14232eaa35ec74e364a69047386b3bab18309
|
File details
Details for the file django_auth_app-0.2.4-py3-none-any.whl.
File metadata
- Download URL: django_auth_app-0.2.4-py3-none-any.whl
- Upload date:
- Size: 16.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a16cb8600a1aa2906ebbfaf12bdacc5b56446e3b3f29edc7442c072ea6003992
|
|
| MD5 |
c17e862a306a1db1186ce46a4fb9c6b6
|
|
| BLAKE2b-256 |
cb0b98b9055458ecc3f1a6b333508858f79b4300e566fd550867d4d4cfa1389a
|