Skip to main content

Python library to help manage your Passage application and users

Project description

passage-python

This Python SDK allows for verification of server-side authentication for applications using Passage

Authenticating a Request

To authenticate an HTTP request in a Flask application, you can use the Passage library in a middleware function.

Please make sure you export your Passage public key and set it as an environment variable in your application (PASSAGE_PUBLIC_KEY)

from passageidentity import Passage

def exampleFlaskMiddleware(request):
    psg = Passage()
    user = psg.authenticateRequest(request)

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

passage-identity-0.0.2a6.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

passage_identity-0.0.2a6-py3-none-any.whl (4.6 kB view hashes)

Uploaded Python 3

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