How to verify JWT from AWS Cognito in the API backend?

后端 未结 10 592
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-12 11:17

I\'m building a system consisting of an Angular2 single page app and a REST API running on ECS. The API runs on .Net/Nancy, but that might well change.

I would like

10条回答
  •  误落风尘
    2020-12-12 11:45

    You can get insights from the Lambda code here

    https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-using-tokens-verifying-a-jwt.html

    https://github.com/awslabs/aws-support-tools/tree/master/Cognito/decode-verify-jwt

    In Golang https://gist.github.com/tmaiaroto/e2ee5e88fc6ae035307d7c5ee71a99cf

提交回复
热议问题