warrant icon indicating copy to clipboard operation
warrant copied to clipboard

COGNITO_JWKS

Open rednap opened this issue 6 years ago • 0 comments

not in the documentation is how this ENV variable works, or even what it does...

maybe i'm missing something, kinda new to python, but how does one set the env var COGNITO_JWKS .. i assume this is used to validate the jwt sig as AWS describes here: https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-using-tokens-verifying-a-jwt.html ??

your example: COGNITO_JWKS={"keys": [{"alg": "RS256","e": "AQAB","kid": "123456789ABCDEFGHIJKLMNOP","kty": "RSA","n": "123456789ABCDEFGHIJKLMNOP","use": "sig"},{"alg": "RS256","e": "AQAB","kid": "123456789ABCDEFGHIJKLMNOP","kty": "RSA","n": "123456789ABCDEFGHIJKLMNOP","use": "sig"}]}

i cannot $ export COGNITO_JWKS={} .. will $ export COGNITO_JWKS='{}' work?

any help would be greatly appreciated. thanks for the lib!

rednap avatar Feb 10 '19 17:02 rednap