This module authenticates requests on a Node.js application by verifying the
ID tokens issued by AWS Cognito.
It implements the AWS Guideline for JWT validation.
This module offers an out of the box solution to authenticate requests on an Express.js application by verifying the AWS Cognito JWTs sent in the
Authorization header using the Bearer scheme.
Besides, it was designed so that it has the maximum flexibility. So, if you are not using Express.js, you can still use the
JWTValidator class and create your custom authentication flow.
In the following picture, we illustrate which part of the authentication flow is covered by this module.
The following are the features included in this module:
You will need:
$ npm install --save aws-cognito-express
If you have any security issue to report, contact project maintainers privately. You can find contact information in CONTACT.md.