Skip to main content

A Django app to have a ready-to-use authentication system.

Project description

JWTUltimateAuth is a Django app to have a ready-to-use authentication system. Security is the most important thing it can provide.

Detailed documentation is in the “docs” directory.

Quick start

  1. Add “jwt_auth” to your INSTALLED_APPS setting like this:

  2. Add “jwt_auth.middleware.JWTAuthMiddleware” to your MIDDLEWARE setting like this, under the built-in “AuthenticationMiddleware”:

  3. Add “jwt_auth.authenticate.JWTBackend” to your AUTHENTICATION_BACKENDS settings like this:

  4. Set “JWT_AUTH_PRIVATE_KEY” and “JWT_AUTH_PUBLIC_KEY” which has to be a pem formatted rsa keypair (create it like this:

    ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key
    # Don't add passphrase
    openssl rsa -in jwtRS256.key -pubout -outform PEM -out
    cat jwtRS256.key
  5. Include the jwt_auth URLconf in your project like this:

  6. Run python migrate to create the needed models.

  7. Enjoy your new auth system!

Project details

Download files

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

Files for django-ultimate-jwt-auth, version 0.3
Filename, size File type Python version Upload date Hashes
Filename, size django-ultimate-jwt-auth-0.3.tar.gz (5.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page