aws-cognito-token-verification-serverside

Python implementation to process the Amazon Cognito ID token and the access token on the server side.

View the Project on GitHub kyhau/aws-cognito-token-verification-serverside

aws-cognito-token-verification-serverside

Build Status codecov

Python implementation to process the Amazon Cognito ID token and the access token on the server side, as per https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-using-tokens-with-identity-providers.html

Build

Linux

virtualenv env
. env/bin/activate
pip install -e .

Windows

virtualenv env
env\Scripts\activate
pip install -e .

Tox Tests and Build the Wheels

export COGNITO_REGION=(your_cognito_user_pool_region; e.g. ap-southeast-2)
export COGNITO_USER_POOL_ID=(your_user_pool_id)

pip install -r requirements-build.txt
# run the python tests
tox -r

Building Wheels

If the library is py2/py3 compatible then remove the bdist_wheel lines in tox.ini and use this bdist_wheel line in test.sh/test.bat instead

python setup.py bdist_wheel --universal