Middleware to intercept JWT auth token and more utils functions
Project description
JSM User JWT Service
Middleware to intercept JWT auth token and more utils functions
Install
pip install jsm-user-services
Add jsm_user_services
to your INSTALLED_APPS
:
INSTALLED_APPS = [
"django.contrib.admin",
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.sessions",
"django.contrib.messages",
"django.contrib.staticfiles",
"jsm_user_services",
"app_test",
]
Add the Middleware:
MIDDLEWARE = [
...
"jsm_user_services.middleware.JsmJwtService",
]
Use
from jsm_user_services.services.user import current_jwt_token
from jsm_user_services.services.user import get_jsm_token
from jsm_user_services.services.user import get_jsm_user_data_from_jwt
from jsm_user_services.services.user import get_ltm_token
from jsm_user_services.services.user import get_ltm_user_data_from_jwt
from jsm_user_services.services.user import get_user_email_from_jwt
current_jwt_token()
get_jsm_token()
get_ltm_token()
get_jsm_user_data_from_jwt()
get_ltm_user_data_from_jwt()
get_user_email_from_jwt()
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
Built Distribution
Close
Hashes for jsm_user_services-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0027162caf27a32d6f23394ff2dea7329ca1e452c5ed6b976463da7f2cbdca54 |
|
MD5 | 5765d4da490d9f754a4399b056d74d8d |
|
BLAKE2b-256 | 8a763e4cf85c7228bb4d7ee8ddd41bfc7cf8c7632b0a72496ca9faf3dd3ba923 |