Multiple authorizer types for one endpoint

aws

#1

Hi all!

I’m doing some experimenting with serverless and authorizers for my API. I have a usecase where I have two different apps, one iOS and one Angular. The iOS app uses developer authentication with federated identities since it authenticates with a third party api, and the Angular app uses Cognito Userpools for authentication.

So i can specify a function with a User Pool authorizer and that works fine, and for my developer authentication users i’m using AWS_IAM authorizer and that works fine too.

But now i want my developer authenticated identities and my user pool users to be able to access the same api gateway endpoint. So how can I use two different types of authorizers for one endpoint?

Anyone with some experience in this that could point me in the right direction?