Authentication and Authorization in Dittofeed
Dittofeed offers three “Auth Modes”, each of which varies in its level of flexibility and ease of use. The three modes are:
- Anonymous: No authentication is required to access the Dittofeed Dashboard or API.
- Single Tenant: A minimalistic authentication setup that allows you to create a single, shared, password protected user account for your Dittofeed instance.
- Multi Tenant: A more complex authentication setup that allows you to integrate with any OIDC compliant identity provider. This allows for multiple users to access your Dittofeed instance, each with their own credentials.
Anonymous
This is the default auth mode for Dittofeed. It requires no configuration and works out of the box. It is not recommended for production use, but is useful for testing and development. This auth mode is visible in our demo instance.
Single Tenant
A minimalistic authentication setup that allows you to create a single, shared, password protected user account for your Dittofeed instance.
Currently the single-tenant
auth mode is only available with dittofeed-lite.
This setup can be configured by provide the following environment variables to Dittofeed:
The SECRET_KEY
should be a 32 byte string. You can generate one using the following script,
Single Tenant is the default auth mode for Dittofeed’s Render deployment.
Multi Tenant
The Multi Tenant auth mode is a more complex authentication setup that allows you to integrate with any OIDC compliant identity provider e.g. auth0. This allows for multiple users to access your Dittofeed instance, each with their own credentials. This is the default authentication mode in Dittofeed Cloud.
We provide this auth mode in our cloud by using a proxy server, in our kubernetes cluster. Access to the kubernetes resources to set this up on your own are available on request. This is not something we recommend for most self-hosted deployments, due to the complexity of the setup.