Metadata-Version: 1.2
Name: jsa-auth-middleware
Version: 0.0.1
Summary: JetStream Authentication MiddleWare
Home-page: https://github.com/JetstreamAfrica/jsa_sdks/tree/master/jsa_auth_middleware
Author: Kunsam002 :: Olukunle Ogunmokun
Author-email: kunsam002@gmail.com
License: MIT License
Description: ====================================
        JetStream Authentication Middleware
        ====================================
        
        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
        -----------
        1. Configure `AUTH_BASE_URL` in project `settings` pointing to the Authentication server **without trailing slash** 
        
        2. Add `jsa_auth_middleware.JSAMiddleware` to your `MIDDLEWARE` configuration in `settings.py` to validate authentication of all incoming requests::
        
            MIDDLEWARE = [
                ...
                'jsa_auth_middleware.JSAMiddleware',
            ]
        
        3. 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
                )
        
        
Platform: UNKNOWN
Classifier: Framework :: Django
Classifier: Framework :: Django :: 2.2
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.7
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.7
