You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a Fast API application that uses Bearer tokens. Is there was way for me to provide hypercorn the username or some identifier of the user/service-account associated with the bearer token from Fast API? So that it can be logged in the access log.
EDIT 1: I just realized I could set a response header in fast api and have hypercorn log it in the access log. Is that the best way to accomplish this?
The text was updated successfully, but these errors were encountered:
I think the response header would work. Although it might make more sense to access log in FastAPI rather than Hypercorn - there is a good discussion of options here
I have a Fast API application that uses Bearer tokens. Is there was way for me to provide hypercorn the username or some identifier of the user/service-account associated with the bearer token from Fast API? So that it can be logged in the access log.
EDIT 1: I just realized I could set a response header in fast api and have hypercorn log it in the access log. Is that the best way to accomplish this?
The text was updated successfully, but these errors were encountered: