Chainlit Authentication
Chainlit’s password-based authentication is now integrated with the User Model. When API authentication is enabled, Chainlit authentication is also enabled. Disabling API authentication will disable Chainlit’s password-based authentication as well.
How to authentication
Section titled “How to authentication”- Go to
/chainlitand provide your credentials
Optional Configuration
Section titled “Optional Configuration”When a user logs in, Chainlit generates a session token and signs it using the environment variable CHAINLIT_AUTH_SECRET (see the Chainlit authentication documentation for details). Each time the user sends a request, the token’s signature is validated.
The CHAINLIT_AUTH_SECRET variable is required for authentication, and a default value (default_secret_for_openrag_ui) is set. For production environments, it is recommended to change this value by following these steps:
- Generate a secret automatically using
chainlit create-secret(oruv run chainlit create-secretif using uv), or set your own custom value. - Add the secret to your environment configuration:
CHAINLIT_AUTH_SECRET=your_secret_value