Basic Auth Setup
How to set up Username/Password account creation
Below details how to setup Onyx with basic username/password auth. While this is the easiest way to get started, we recommend picking Google OAuth / OIDC / SAML in the long term (if possible). If you have any questions, don’t hesitate to reach out to us - we’re more than happy to help you pick which auth approach is best for your organization.
Env Variables
In your .env
file, make sure you have the following value set:
If you don’t want to require email verification, then you’re done!
After restarting Onyx, you should see the following screen appear on your next visit:
Email Verification
With Email verification enabled, users will not be able to interact with Onyx until they have proven that they are the owner of the email address used to sign up. Specifically, when setup an email will be sent to all new sign ups with a “link to verify”.
To setup email verification, you can add the following to your .env
file:
The email account specified by SMTP_USER
/ SMTP_PASS
will be used to send the verification
emails to new sign ups. If using a gmail-powered account, you will need to allow username / password
login by third party services. To do this, you can follow the official guide from Google
here.