A simple authorization Django app based on JSON Web Tokens.
Project description
=====
django-cukierpuder-jwt-auth
=====
django-cukierpuder-jwt-auth is a simple authorization Django app based on JSON Web Tokens.
Quick start
-----------
1. Add jwt_auth to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [
...,
'jwt_auth.apps.JwtAuthConfig',
]
2. Include the polls URLconf in your project urls.py like this::
path('auth/', include('jwt_auth.urls')),
3. Run `python manage.py migrate` to create the polls models.
4. Available endpoints::
'/auth/register/' - [POST] register a new user (requires an email, username and password in request's body)
'/auth/token/obtain/' - [POST] obtain access and refresh token (requires username and password in request's body)
'/auth/token/refresh' - [POST] obtain refresh token (requires refresh token in request's body)
'/auth/users/' - [GET] get the list of all users (requires access token in request's header)
'/auth/users/<int:id>/' - [GET] get the details of specific user (requires access token in request's header)
django-cukierpuder-jwt-auth
=====
django-cukierpuder-jwt-auth is a simple authorization Django app based on JSON Web Tokens.
Quick start
-----------
1. Add jwt_auth to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [
...,
'jwt_auth.apps.JwtAuthConfig',
]
2. Include the polls URLconf in your project urls.py like this::
path('auth/', include('jwt_auth.urls')),
3. Run `python manage.py migrate` to create the polls models.
4. Available endpoints::
'/auth/register/' - [POST] register a new user (requires an email, username and password in request's body)
'/auth/token/obtain/' - [POST] obtain access and refresh token (requires username and password in request's body)
'/auth/token/refresh' - [POST] obtain refresh token (requires refresh token in request's body)
'/auth/users/' - [GET] get the list of all users (requires access token in request's header)
'/auth/users/<int:id>/' - [GET] get the details of specific user (requires access token in request's header)
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
Close
Hashes for django-cukierpuder-jwt-auth-0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dcb452bed4eb2eb55775d6d68fcbf27ea1f135dd0264ac80e75b4e6454143a90 |
|
MD5 | 2448c9a0562a840d56069bc099e9f233 |
|
BLAKE2b-256 | 71d5d2c1f38d6e625cd7cea408bcd364215b7cd1cc406b46890c1b15bf995596 |