Skip to main content

A super simple and basic client lib for Auth0

Project description

authozero library

This is a super simple and basic Auth0 Python client library.

You can also find it here: https://pypi.python.org/pypi/authzerolib

Quickstart

from authzero import AuthZero

config = {'client_id': 'AAAA', 'client_secret': 'BBBB', 'uri': 'localhost'}
az = AuthZero(config)
ret = az.get_rules()
...

See authzerolib.py for a list of functions.

Options

  • AuthZero.access_token_auto_renew bool if true, the library will attempt to automatically renew access_tokens
  • AuthZero.access_token_auto_renew_leeway int in seconds, will renew the access token before it expires with that amount of time buffer

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

authzerolib-1.1.0.tar.gz (14.2 kB view hashes)

Uploaded source

Built Distribution

authzerolib-1.1.0-py3-none-any.whl (10.8 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page