Metadata-Version: 2.1
Name: cognitojwt
Version: 1.0.3
Summary: Decode and verify Amazon Cognito JWT tokens
Home-page: http://github.com/borisrozumnuk/cognitojwt
Author: Boris Rozumniuk
Author-email: borisrozumnuk@gmail.com
License: MIT
Description: # Decode and verify Amazon Cognito JWT tokens
        
        ### Note: tested on Python >= 3.6, compatible with PEP-492 (async/await coroutines syntax)
        
        ### Installation
        
        Package works in two modes: synchronous (requests as http-client) and asynchronous (aiohttp as http-client).
        In order to avoid installing unnecessary dependencies I separated installation flow into two modes:
        
        * Async mode - `pip install cognitojwt[async]`
        * Sync mode - `pip install cognitojwt[sync]`
        
        ### Usage
        
        ```
        import cognitojwt
        
        id_token = '<YOUR_TOKEN_HERE>'
        REGION = '**-****-*'
        USERPOOL_ID = 'eu-west-1_*******'
        APP_CLIENT_ID = '1p3*********'
        
        # Sync mode
        verified_claims = cognitojwt.decode(
            id_token,
            REGION,
            USERPOOL_ID,
            APP_CLIENT_ID,
            testmode=True # disable token expiration checking for testing purposes
        )
        
        # Async mode
        verified_claims = await cognitojwt.decode_async(
            id_token,
            REGION,
            USERPOOL_ID,
            APP_CLIENT_ID,
            testmode=True # disable token expiration checking for testing purposes
        )
        
        ```
Keywords: Amazon Cognito JWT
Platform: Any
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
Provides-Extra: sync
Provides-Extra: async
