jordaneremieff / mangum

AWS Lambda support for ASGI applications
https://mangum.io/
MIT License
1.67k stars 119 forks source link

Basic Auth on FastAPI+API Gateway #287

Closed bersena911 closed 1 year ago

bersena911 commented 1 year ago

Hi guys, thanks for such good product, I noticed that chrome or any other browser does not pop up auth when using HTTPBasicCredentials. It is working locally perfectly, but not when deployed on API Gateway using Mangum. So I suppose it has some problems with Mangum.

image
bersena911 commented 1 year ago

Update, I noticed that www-authenticate: basic header is not being returned when 401 is happening. Is Mangum ignoring this header?

bersena911 commented 1 year ago

Closing because its not a problem with Mangum, its amazon which overrides my WWW-Authenticate to x-amzn-remapped.