JetStream Authentication MiddleWare
Project description
JSA Auth Middleware is a python package built for integrating with JetStream across multiple micro-services, with the aim of handling authentication and Single-Sign-On while ensuring API security.
Quick start
Configure AUTH_BASE_URL in project settings pointing to the Authentication server without trailing slash
Add jsa_auth_middleware.JSAMiddleware to your MIDDLEWARE configuration in settings.py to validate authentication of all incoming requests:
MIDDLEWARE = [ ... 'jsa_auth_middleware.JSAMiddleware', ]
Import Query Response across application to define and process API response:
from jsa_auth_middleware.query_response import Response Response( { 'status': 'success', 'data': <<Some data>> }, status=status.HTTP_200_OK )
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
Close
Hashes for jsa-auth-middleware-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e98747550f55d4cd59ba7cf65e22f173a0d1d24d5d727e17dfb9baf342c8b7c4 |
|
MD5 | 0a86e0129559a8239e3063dc56c5f5b6 |
|
BLAKE2b-256 | 951d43136c5481c29eb4873ebfad4efdcc29027b9ae44a06137053bb55212cb5 |