Header auth is a simple way to authenticate users using a header. It is typically used to delegate authentication to a reverse proxy. TheDocumentation Index
Fetch the complete documentation index at: https://docs.chainlit.io/llms.txt
Use this file to discover all available pages before exploring further.
header_auth_callback function is called with the headers of the request. It should return a User object if the user is authenticated, or None if the user is not authenticated.
The callback function (defined by the user) is responsible for managing the authentication logic.
Example
test-header is set to test-value when sending any request to the app.