Skip to main content

No project description provided

Project description

https://img.shields.io/pypi/v/mbq.tokens.svg https://img.shields.io/pypi/l/mbq.tokens.svg https://img.shields.io/pypi/pyversions/mbq.tokens.svg https://img.shields.io/travis/managedbyq/mbq.tokens/master.svg

Installation

$ pip install mbq.tokens
🚀✨

Guaranteed fresh.

Getting started

from mbq import tokens

tokens.init(
    certificate=settings.FORMATTED_CERTIFICATE,
    allowed_audiences=set(settings.ALLOWED_AUDIENCES),
)

try:
    decoded_token = tokens.decode(token)
except tokens.TokenError:
    # will only ever raise TokenError
    logger.exception('Failed to decode token')

decoded_token = tokens.decode_header(request.META['HTTP_AUTHORIZATION'])

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

mbq.tokens-0.0.4.tar.gz (6.1 kB view details)

Uploaded Source

File details

Details for the file mbq.tokens-0.0.4.tar.gz.

File metadata

  • Download URL: mbq.tokens-0.0.4.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mbq.tokens-0.0.4.tar.gz
Algorithm Hash digest
SHA256 3aeb3ab8f87013ffb91e0ec754282ff74d5cc0db5b54ec8c972fb379acbf70b3
MD5 02b9134e0de42234ecd717322d7368ed
BLAKE2b-256 a8b71b7b81dc3b2edb37f5705d986f96903e7fc5202fca5c7d9bdca2ad39262c

See more details on using hashes here.

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