Regarding Authorizers on APIs. What is the right way to declare a list of User Pools that can access the API? I see there are ‘Authorizers’ that can be declared in the API props. I’ve been able to use that as the default.authorizer. However that just works for one UserPool. What if I want to declare many user pool authorizers?
@Nathan if only a single UserPool can access a route, you can create multiple User Pool JWT authorizers, and specify the one to use at the route level.
Frank
05/25/2022, 4:47 PM
But if you want multiple UserPool to access the same route, you might have to use a custom Lambda authorizer.
Frank
05/25/2022, 4:49 PM
^ I’m sure others might have better setup
n
Nathan
05/25/2022, 4:51 PM
Thanks Frank. I was thinking the same thing about the custom authorizer.