A package to perform actions related to auth0 JWT tokens.
Project description
auth0rization
A library to provide simple methods to validate and use Auth0 JWT tokens.
Installation
pip install auth0rization
Example usage
import json
import auth0rization
access_token = "<access_token>"
validator = auth0rization.Validator(
domain="<auth0_domain>",
audience="<audience>"
)
access = validator.validate(access_token, "read:example")
profile = access.user_profile()
print(json.dumps(profile, indent=2))
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
auth0rization-1.0.0.tar.gz
(7.4 kB
view hashes)
Built Distribution
Close
Hashes for auth0rization-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e8aba41f756cf14ffa816379b3cfc5c860cde908593246c17243b096fd69db1 |
|
MD5 | 4b174d55b8f97c36f027a2f0dd3572b8 |
|
BLAKE2b-256 | e6a3ee741149bbf245042c27eb4e94d8baab1836a539e05f4091c417b4903a40 |