How to secure Spring boot REST API endpoints using Amazon Cognito?