Skip to main content

This project contains the basic authentication against the remote JWT service.

Project description

The goal of this project is to have a reusable component that allow us to authenticate against a microservice for user management. This will take the JWT token that was send in the request Authorization header and it will use it to retrieve the user information and store it in the local user database.

Quick start

  1. Install the project by doing pip install authconnector

  2. Install the usual django migrations.

  3. Add the app to the django INSTALLED_APPS:

    ‘remoteauth’

  1. Add the next configuration on the django settings:

INMOBILIO_AUTHENTICATION_SERVICE = { ‘JWT_VALIDATION_URL’: ‘http://localhost:9000/auth/user’ }

  1. Done :D

You can now retrieve the user within the request to your API endpoints.

Project details


Download files

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

Source Distribution

authconnector-1.0.1.tar.gz (3.8 kB view details)

Uploaded Source

File details

Details for the file authconnector-1.0.1.tar.gz.

File metadata

  • Download URL: authconnector-1.0.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

File hashes

Hashes for authconnector-1.0.1.tar.gz
Algorithm Hash digest
SHA256 31a4c83426a74f9a6b644f7ee589a431ef60b92a17051ff76fe576e2ed9b0b4b
MD5 7237076e11d40b4fb70abfd87b3baafe
BLAKE2b-256 a0c2dd1de8759ba9ed8086d8df8d4928a86e185ad4d95db5741b921810abcb34

See more details on using hashes here.

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