3

I am using SAM LOCAL and start-api to test my lambda functions using postman. I use Cognito for user authentication and pass the cognito token to the API Gateway. In production, it works fine. I need the username from Cognito (requestContext: authorizer: claims: cognito:username). SAM LOCAL start-api does not provide these.

Any help would be appreciated.

sgiot
  • 31
  • 2
  • I don't think Cognito works for sam local – holtc Dec 23 '18 at 21:48
  • 1
    Does this answer your question? [SAM Local doesn't appear to be running Authorizer functions](https://stackoverflow.com/questions/57632539/sam-local-doesnt-appear-to-be-running-authorizer-functions) – Dunedan Sep 04 '21 at 04:38

0 Answers0