Metadata-Version: 2.1
Name: mbq.tokens
Version: 1.0.0
Summary: MBQ Tokens
Home-page: https://github.com/managedbyq/mbq.tokens
Author: Managed by Q, Inc.
Author-email: open-source@managedbyq.com
Maintainer: Managed by Q, Inc.
Maintainer-email: open-source@managedbyq.com
License: Apache 2.0
Description: mbq.tokens: fool-proof token decoding
        =====================================
        
        .. image:: https://img.shields.io/pypi/v/mbq.tokens.svg
            :target: https://pypi.python.org/pypi/mbq.tokens
        
        .. image:: https://img.shields.io/pypi/l/mbq.tokens.svg
            :target: https://pypi.python.org/pypi/mbq.tokens
        
        .. image:: https://img.shields.io/pypi/pyversions/mbq.tokens.svg
            :target: https://pypi.python.org/pypi/mbq.tokens
        
        .. image:: https://img.shields.io/travis/managedbyq/mbq.tokens/master.svg
            :target: https://travis-ci.org/managedbyq/mbq.tokens
        
        Installation
        ------------
        
        .. code-block:: bash
        
            $ pip install mbq.tokens
            🚀✨
        
        Guaranteed fresh.
        
        
        Getting started
        ---------------
        
        .. code-block:: python
        
            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'])
        
Keywords: jwt token authorization
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Topic :: Software Development :: Libraries
Description-Content-Type: text/x-rst
