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 details)

Uploaded Source

File details

Details for the file django-cukierpuder-jwt-auth-0.2.tar.gz.

File metadata

  • Download URL: django-cukierpuder-jwt-auth-0.2.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.1

File hashes

Hashes for django-cukierpuder-jwt-auth-0.2.tar.gz
Algorithm Hash digest
SHA256 dcb452bed4eb2eb55775d6d68fcbf27ea1f135dd0264ac80e75b4e6454143a90
MD5 2448c9a0562a840d56069bc099e9f233
BLAKE2b-256 71d5d2c1f38d6e625cd7cea408bcd364215b7cd1cc406b46890c1b15bf995596

See more details on using hashes here.

Supported by

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