Questions tagged [aws-lambda-authoriser]
3 questions
1
vote
0 answers
AWS SAM API gateway with CORS and DefaultAuthorizer is authorizing OPTIONS requests
I have an API gateway with CORS and a default authorizer, but obviously I don't want my options requests to be authorized. Luckily AWS made the attribute "AddDefaultAuthorizerToCorsPreflight" which when set to "false" should make sure that the…

Affe
- 11
- 1
0
votes
0 answers
Customize 401 Unauthorized response from AWS Lambda Authorizer
I am developing an API with AWS API Gateway, and the authorization to consume the API endpoints is based on JWT tokens. As a requirement, the server needs to follow strictly the behavior described in RFC 6750: "OAuth 2.0 Bearer Token Usage".
In…
0
votes
0 answers
Throwing errors in API gateway Lambda Authoriser
I am writing a custom lambda authoriser used for a V2 HTTP APIGateway.
The authoriser is using the V2 Simple response format.
I have various checks i.e. check a header exists, validate the token, check for custom claims etc.
If any of these fails I…

chinds
- 1,761
- 4
- 28
- 54