Skip to main content

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)

Project details


Release history Release notifications | RSS feed

This version

0.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-cukierpuder-jwt-auth-0.2.tar.gz (15.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page