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
Install this package using pip.
pip install passage-identity
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.5.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for passage_identity-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56c21c5a5f2815225de5282ea76e9f5a1dc021fdec023fe3f3ee28a58229d67a |
|
MD5 | 0c54b8f9da46ece0e8da6eacda89d377 |
|
BLAKE2b-256 | 553d9b1085203c92070bdb6b0fce1a5f51c11e6581514da495390f1920f3d46c |