Set up Onyx with basic username/password authentication
Basic Auth is the easiest way to get started with Onyx. However, we recommend using Google OAuth, OIDC, or SAML for production deployments.
If you have questions about which authentication approach is best for your organization, don’t hesitate to contact us - we’re happy to help you choose the right solution.
If you don’t need email verification, you’re done!Restart Onyx to apply the changes and the next time you visit the site, you’ll be prompted to create an account and set a password.
Enabling email verification blocks your users from signing in until they click their verification email.Using Docker:Set the following in your .env file:
Copy
Ask AI
AUTH_TYPE=basic# Enable email verificationREQUIRE_EMAIL_VERIFICATION=true# Email configurationSMTP_USER=<EMAIL_TO_SEND_VERIFICATION_EMAILS_FROM> # e.g. noreply@yourcompany.comSMTP_PASS=<PASSWORD_FOR_THE_EMAIL_ABOVE># Required for non-Gmail accountsSMTP_SERVER=<YOUR_SMTP_SERVER>SMTP_PORT=<PORT_YOUR_SMTP_SERVER_LISTENS_ON> # default: 587
Using Helm:Set the following in your values.yaml file: