A Django app to conduct web-based user authentication.
Project description
User Auth is a Django app to conduct web-based User Auth. For each question, visitors can choose between a fixed number of answers.
Detailed documentation is in the “docs” directory.
Quick start
1. Dependency you have to install: pip install django-phonenumber-field djangorestframework djangorestframework-simplejwt phonenumbers django-rest-passwordreset Pillow 1. Add “User Auth” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ... 'django_rest_passwordreset', 'phonenumber_field', 'user', ]
- Include the User Auth URLconf in your project urls.py like this::
from django.urls import include path(‘api/user/’, include(‘user.urls’)),
Include the following line in your project settings.py like this:
AUTH_USER_MODEL = 'user.User'
Run python manage.py makemigrations and python manage.py migrate to create the User Auth models.
Start the development server and visit http://127.0.0.1:8000/admin/ to create a user (you’ll need the Admin app enabled).
Visit http://127.0.0.1:8000/api/user/ to participate in the user auth.
- all the url for particular action is given below,
user registration, url: http://127.0.0.1:8000/api/user/users/ , method: post, body: login, url: http://127.0.0.1:8000/api/user/auth/ , method: post, body: username,password update profile , http://127.0.0.1:8000/api/user/update_profile/ , method: post get user role, http://127.0.0.1:8000/api/user/user_role/ , method: get path(‘change_password/’,change_password),
path(‘token/refresh/’, TokenRefreshView.as_view(), name=’token_refresh’), path(‘password_reset/’, include(‘django_rest_passwordreset.urls’, namespace=’password_reset’)),
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
Hashes for django-user-auth-asl2-0.1.2.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1332723d70809d93923084e5ca7eccdf97a239bc320b3f01ada70ed7dc0f9a8e |
|
MD5 | 6552bbaf520358bd0416cb29f5d515b8 |
|
BLAKE2b-256 | 7b995d77de47291a7de24d34208db1dcd9a63b03573f636bc5aae7b685198c35 |
Hashes for django_user_auth_asl2-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6d3bde29630ad7ec0f3c441bf41df8a17a76b7d651b29bd5737c7b022e9d35e |
|
MD5 | e2e185d48d42cc0c006716f421e060b1 |
|
BLAKE2b-256 | e12e316641bedb8aaa86bbb58d12e4286d98f607d5407b7c5049657e422d5013 |