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
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 passage_identity-0.0.2a6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca821e72aac5446600931ab4815e5e24c863b47e5de51adb2554fab55f653d96 |
|
MD5 | 19fb41ddd104227fc6be43a2f1e5414e |
|
BLAKE2b-256 | 08ded6517ed05d40ab8fbcfd427e020e9bc382d796bea0fa661ba443ab2f311a |