AWS API Gateway Method Test: Error Authorization not configured

Viewed 3818

I've created a RESTful API on AWS and I'm trying to test the POST method. I give a sample request to the the request body in the api gatemway console's test interface it get this response:

{
  "Error": "Authorization not configured",
  "Reference": "e6b7ec86-97fe-11e7-b480-ebefe7f11420"
}

I originally had this set to a Cognito User Pool with read/write access to a corresponding table, but I got this error message. I tried removing authorization in the method just to test this, but again I received this error.

As far as I can tell, I have authorization set up across the board.

  • IAM role created to add, update, query, and delete, from table (trusted entities: AWS service: lambda) and the AWSLambdaBasicExecutionRole
  • Lambda function using an existing (above) role
  • authorizer created using my User Pool for authorization
  • resource and method (POST) created using cognito user pool authorizer from above

I feel like I must be missing something obvious, but everything seems to be in order as I step through it here. Any help is much appreciated and please let me know if I can provide any additional information.

5 Answers

If anyone else is having this problem, I simply had to clear my cached data on my browser for it to work.

I have gone through the German version of this tutorial and they translated the value of the token source too, which is wrong at this point.
I just had to change the token source in the API Gateway to the English phrase Authorization and deploy the API again and it worked.

Related