0
votes

I am able to call my rest api in api gateway by passing the users IdToken in the Authorization header when using Cognito User Pools.

However now I'm trying to call api gateway using Cognito federated identities, therefore an iam user. What do I send in the Authorization header in this case?

I'm calling lambda using proxy+

1

1 Answers

0
votes

If you have done the part with Cognito with user pool and federated identifies, you can use AWS_IAM as authorizer.

  get:
    handler: get.main
    events:
      - http:
          path: notes/{id}
          method: get
          cors: true
          authorizer: aws_iam