How do I call an API Gateway with Cognito credentials in Python

前端 未结 4 1968
时光取名叫无心
时光取名叫无心 2020-12-16 01:53

I\'ve managed to setup an API Gateway secured with Cognito. The unauthenticated user role has an access policy that should grant it access to the gateway. I\'ve also managed

4条回答
  •  难免孤独
    2020-12-16 02:31

    Here is an example from our public docs: http://docs.aws.amazon.com/general/latest/gr/sigv4-signed-request-examples.html

    Cognito creds are no different than any other temporary creds, and the signing process is also the same. If you want to move back to Python the example above should be good, or I would guess that there are third-party libraries out there to do the signature for you.

提交回复
热议问题