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
passage-identity-0.0.3.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for passage_identity-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6acfddae16b6d937e1336d16b705406ed54b61e13cc1c892f009cf02bcc171e |
|
MD5 | af9797065ec776fdd704495d3aa3a05e |
|
BLAKE2b-256 | df250b57c78f285c90314c2673f455f6cc460d520a37f0dec940def9c50c51ff |