Authenticate requests with JWT tokens issued by AWS Cognito. This is a customized version of the OpenId JWT Policy specifically for AWS Cognito.
Be sure to read about policies
namethe name of your policy instance. This is used as a reference in your routes.
policyTypethe identifier of the policy. This is used by the Zuplo UI. Value should be
handler/exportThe name of the exported type. Value should be
handler/modulethe module containing the policy. Value should be
handler/optionsThe options for this policy:
allowUnauthenticatedRequestsAllow unauthenticated requests to proceed. This is use useful if you want to use multiple authentication policies or if you want to allow both authenticated and non-authenticated traffic.
regionThe AWS region where your Cognito instance is deployed
userPoolIdThe user pool identifier