How setup header in Postman for Api Gateway authenticated with Cognito?

后端 未结 3 1964
终归单人心
终归单人心 2021-01-02 15:57

I use AWS Identity Pool with Facebook provider to authenticate client. I need to invoke AWS Lambda using Api Gateway. From Cognito, using Facebook token, i received credenti

3条回答
  •  借酒劲吻你
    2021-01-02 16:10

    Please try this for postman:

    http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-use-postman-to-call-api.html

    you choose the AWS Signature option in the Authorization drop-down, and fill out the fields using the key and secret, click update. Postman will sign the request for you.

    And also make sure the role being assigned to your cognito users has access to invoke apig.

提交回复
热议问题