Support for Multiple authorizers
See original GitHub issueThis is a Feature Proposal
Description
Be able to specify multiple authorizers for a single api end point:
At the moment we are restricted to have only one (at least I could not find in the docs how to specify multiples), example:
- http:
path: graphql
method: post
cors:
origins:
- '*'
authorizer:
arn: arn:aws:cognito-idp:us-east-1:XXXXX:userpool/us-east-XXXXXX
identitySource: method.request.header.Authorization
I can configure multiple authorizers using the API Gateway Web UI.
In my case I have 2 UserPools and also Facebook authentication (that I’ll implement as a custom authorizer). A user authenticated in any of these should be able to access the API.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Introducing custom authorizers in Amazon API Gateway
An API can have multiple custom authorizers and each method within your API can use a different authorizer. For example, the POST method...
Read more >Use multiple API Gateway authorizers | AWS re:Post
Hello All, Is there a way to use multiple authorizers in API Gateway or chain the authorizers. For instance, check the signed headers...
Read more >Multiple authorizer types for one endpoint in serverless
I'm doing some experimenting with serverless and authorizers for my API. I have a usecase where I have two different apps, one iOS...
Read more >[Solved] Multiple custom authorizers for one gateway?
Hi! I was hoping to deploy an API Gateway with two endpoints, each using a different Custom Authorizer lambda. I have the authorizer...
Read more >Introduction to Multiple Authorizers - NACSA
While NACSA strongly recommends the presence of multiple authorizers, an authorizing structure only works if it creates a quality chartering ecosystem that ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@AshUK How do you assign multiple user pools to an API gateway with serverless?
I think you can only set one authorizer per APIG endpoint. Nevertheless, you can create multiple authorizers and assign them to different endpoints.
The AWS documentation refers to a single authorizer in the method configurations only. E.g. here:
IMO, to support all of the authentication methods on a single endpoint, you’d have to write your own custom authorizer, that internally evaluates the Authorization header and does the access control validation for the needed authentication providers internally.