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 details)
Built Distribution
File details
Details for the file auth0rization-1.0.0.tar.gz
.
File metadata
- Download URL: auth0rization-1.0.0.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff4a0551afc539014a69606f0c19ac9387a322e200ac055447211156a871c454 |
|
MD5 | f08f99efa18683c77b8d7bdcb9db0b7e |
|
BLAKE2b-256 | 56f915dffd9783dd89ead22b4ef3beb181bb15d44b8825a5e07ed1ec6eb1b2a2 |
File details
Details for the file auth0rization-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: auth0rization-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e8aba41f756cf14ffa816379b3cfc5c860cde908593246c17243b096fd69db1 |
|
MD5 | 4b174d55b8f97c36f027a2f0dd3572b8 |
|
BLAKE2b-256 | e6a3ee741149bbf245042c27eb4e94d8baab1836a539e05f4091c417b4903a40 |