CloudySnake / flask-cognito-integration

MIT License
35 stars 14 forks source link

How did you determine these values? #9

Open HSchmale16 opened 3 years ago

HSchmale16 commented 3 years ago

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"]