I was trying to get my API gateway work with Cognito user pools authorizer but I cannot seem to get it to work. I am not using any SDK as of now. Some details - for Cognito pool
I'd like to submit another really dumb reason why this was not working - definitely do everything in addition to everything that the accepted answer mentioned:
I was performing my testing and validation on Postman. I added in the Authorization
header and passed in my id_token
. However, I never ticked the checkbox to actually include the header in my actual request:
Hope this might save someone out there from spending hours debugging every possible configuration on API Gateway and Cognito only to realize I was never sending the header in the first place!