flask-cognito-integration
flask-cognito-integration copied to clipboard
How did you determine these values?
I've been reading through the docs, and your article I cannot figure out what should be included in some of the values listed below:
How did you decide to use 'RS256' as the algorithm?
How do I determine what the JWT_SECRET_KEY
should be? Is that like an ssh key or what? I've read through your terraform, but I don't really understand how to use terraform.
Thank you for your time and your article.
JWT_ALGORITHM = "RS256"
JWT_IDENTITY_CLAIM = "sub"
SECRET_KEY = os.environ["SECRET_KEY"]
JWT_PRIVATE_KEY = os.environ["JWT_PRIVATE_KEY"]
# We're using Cognito to generate keys, so this is never used
JWT_SECRET_KEY = os.environ["JWT_SECRET_KEY"]