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:
path('api/user/', include('user.urls')),Run 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
Release history Release notifications | RSS feed
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-user-auth-all-0.1.tar.gz.
File metadata
- Download URL: django-user-auth-all-0.1.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c101fd349442fa8847227c4d2e08b2df3d8f308b2d8b64f247a4ee0fe5b1eecb
|
|
| MD5 |
cc960f9ac9f7d706126cc7c44ecca250
|
|
| BLAKE2b-256 |
6bf9f6519186ae0628df7f02ce89882cec7b63cfe4acb028b277204c19736ec7
|
File details
Details for the file django_user_auth_all-0.1-py3-none-any.whl.
File metadata
- Download URL: django_user_auth_all-0.1-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49a455e193b9cfa361326622aca7c3f227cd61d0a035845ee36723975b8697b8
|
|
| MD5 |
48a4cd98adbe190c667a02420e4e555a
|
|
| BLAKE2b-256 |
49204dc63a4cdbc15bb78711371c51e4a9c2152444be15de6001d8877173e3e8
|