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
답변함 일 년 전
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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠