A small package to connect microservices and authenticate user.
Project description
service_auth
A small package to connect microservices and authenticate user. It uses RemoteModel to make http requests with multiple services. Also used to verify tokens to authenticate users.
Quick start
Install the package pip install dj-micro-auth-connect
.
Add service_auth
in INSTALLED_APPS
INSTALLED_APPS = (
...
'service_auth'
)
Add
ENTITY_BASE_URL_MAP = {
...
'auth':'url-for-authentication-service.com',
}
ENTITY_URL_PATH = {
...
'verify_token':'api/path/for/endpoint',
}
- Note: Above mentioned keys must be same to get it work.
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
Built Distribution
Close
Hashes for dj-micro-auth-connect-0.5.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 458a82fe31310bf876e6b613fa2932b1eaf57b62692a7df6b6307afdf2b1bd09 |
|
MD5 | 2f605dd0b9beda86e8bb8ffa91cd3d9b |
|
BLAKE2b-256 | 453d2f62f18de3e5fa470da3293ebe72d2e328f02236a6b2216d59fecd14c497 |
Close
Hashes for dj_micro_auth_connect-0.5.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a16fa7f5a139ee4924f354674ac0c7d96d9ff5fcbd842900279839764b1b8a8 |
|
MD5 | 2b49214fd1a0db77e96a7b4a2cf2ca70 |
|
BLAKE2b-256 | 204622d5cf72c1759171c7d2a28bf2ff507ae1b88556d2609147193c3a0a6015 |