This is forked project from: https://github.com/IxorTalk/ixortalk.aws.cognito.jwt.security.filter Changed to kotlin with few fixes.