Return a custom header from lambda authorizer in API-gateway (HTTP api)

1

I'm using an API-Gateway HTTP-api (not REST!) with a custom lambda authorizer. However I'd like to be able to customize the HTTP headers returned on authentication failure. This seems possible with the REST-api (https://repost.aws/questions/QUgItZ7VFcS1iQ5wKGeU4YqA/is-it-possible-to-throw-custom-error-message-from-api-gateway-lambda-authorizer), but can't get this working with the HTTP-api.

Is this somehow possible?

2回答
1

Short answer is no, for now. I've tried too but the response integration is not even processed when the authorizer rejects with 403.

profile pictureAWS
ab
回答済み 1年前
0

I am trying to add a custom lambda authorization using CFT to my HTTP api, It would be great if you can help me with it. question: https://repost.aws/questions/QUQidcTLDQTeiEiIsMvLDvPQ/creating-a-authorizer-for-api-gatewayv2-http-api-with-a-custom-lambda-authorizer-using-cft

回答済み 5ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ