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
Install the project by doing pip install authconnector
Install the usual django migrations.
- Add the app to the django INSTALLED_APPS:
‘remoteauth’
Add the next configuration on the django settings:
INMOBILIO_AUTHENTICATION_SERVICE = { ‘JWT_VALIDATION_URL’: ‘http://localhost:9000/auth/user’ }
Done :D
You can now retrieve the user within the request to your API endpoints.
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
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31a4c83426a74f9a6b644f7ee589a431ef60b92a17051ff76fe576e2ed9b0b4b |
|
MD5 | 7237076e11d40b4fb70abfd87b3baafe |
|
BLAKE2b-256 | a0c2dd1de8759ba9ed8086d8df8d4928a86e185ad4d95db5741b921810abcb34 |