Authentication
Ctrlplane supports multiple authentication methods to secure your application.
Available Authentication Methods
Please see the individual sections for detailed information on how to set up each authentication method, including the required environment variables and configuration steps.
General Configuration
Regardless of the authentication method you choose, you’ll need to set the following environment variable:
AUTH_SECRET
: A secret key used to encrypt tokens and sign cookies.
This can be generated by running:
$ openssl rand -base64 32
Authentication Priority
It’s important to note that if Google or OIDC authentication is configured,
basic (credentials) authentication will be disabled by default. If you want to
enable basic authentication alongside other methods, you need to explicitly set
AUTH_CREDENTIALS_ENABLED
to true
.
Next Steps
Choose the authentication method that best suits your needs and follow the setup instructions in the respective section. Each authentication method has its own requirements and configuration steps, so be sure to review the documentation carefully.
If you need help or have any questions about setting up authentication for your Ctrlplane application, please don’t hesitate to reach out to our support team in Discord.