Skip to main content

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


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)

Uploaded Source

Built Distribution

auth0rization-1.0.0-py3-none-any.whl (5.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page