Skip to main content

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

  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
        )

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

jsa-auth-middleware-0.0.1.tar.gz (4.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page