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.0.tar.gz
(7.2 kB
view details)
File details
Details for the file mbq.tokens-1.0.0.tar.gz
.
File metadata
- Download URL: mbq.tokens-1.0.0.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2882cdfd4ca39bb49be2ae85452c504359cd775bdc38a4080fe024a8c80a9062 |
|
MD5 | 4baf54f8804e7ebc87905ec49b1903d0 |
|
BLAKE2b-256 | 71958951aa047a7495be761f2bcc2ff5da004406e1d6dcf2443ca539f18d2299 |