Missing Authentication Token while accessing API Gateway?

前端 未结 18 1460
既然无缘
既然无缘 2020-12-08 12:51

I am trying to call a Lambda Function through AWS API Gateway. When I mention Authentication type NONE it works fine but API become public and anyone with url can access my

18条回答
  •  离开以前
    2020-12-08 13:29

    I try all the above, if you did all steps in the above answers, and you not solve the problem, then:

    1. on the left menu, hit the "Resources"
    2. in the right to "Resources", hit the api method that you want to test, like "POST/GET etc)
    3. hit the "ACTION" list (it's above to the API method in step 2
    4. select "DEPLOY API" (please do it, even you already deploy yours api)
    5. in "deployment stage" select "prod" or what ever you write in yours previous deploy (it will override yours previous deploy
    6. hit deploy

    I thing that because of, when I create the "METHOD REQUEST" (see step 2 how to go to this menu) , in "Authorization" I select "AWS_IAM" after testing api, in aws test option, I try it in "postman" then I understand the in "METHOD REQUEST" , in "Authorization", I should select "none"

    I change it to none, but I thing the AWS, need to deploy it again, as I explain

提交回复
热议问题