MBQ Tokens
Project description
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
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
mbq.tokens-1.0.1.tar.gz
(7.4 kB
view details)
File details
Details for the file mbq.tokens-1.0.1.tar.gz
.
File metadata
- Download URL: mbq.tokens-1.0.1.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 347c3ec809318ca755d6b3c81d966a506ecb76db2e467a2849ae6d3486b76758 |
|
MD5 | 08898fbb35ae5276deb84a667caeb9fc |
|
BLAKE2b-256 | 351d8aed94607b7eb3096c7dd93cef33d4dacfd5c7de88c12c1b5b8df5564899 |