Authentication
MediaManager supports multiple authentication methods. Email/password authentication is the default, but you can also enable OpenID Connect (OAuth 2.0) for integration with external identity providers
All authentication settings are configured in the [auth] section of your config.toml file.
General Authentication Settings ([auth])
[auth])token_secretStrong secret key for signing JWTs (create withopenssl rand -hex 32). This is required.session_lifetimeLifetime of user sessions in seconds. Default is86400(1 day).admin_emailsA list of email addresses for administrator accounts. This is required.email_password_resetsEnables password resets via email. Default isfalse.
OpenID Connect Settings ([auth.openid_connect])
[auth.openid_connect])OpenID Connect allows you to integrate with external identity providers like Google, Microsoft Azure AD, Keycloak, or any other OIDC-compliant provider.
enabledSet totrueto enable OpenID Connect authentication. Default isfalse.client_idClient ID provided by your OpenID Connect provider.client_secretClient secret provided by your OpenID Connect provider.configuration_endpointOpenID Connect configuration endpoint URL. Do not include a trailing slash. Usually ends with/.well-known/openid-configuration.nameDisplay name for the OpenID Connect provider shown on the login page.
Configuration for your OpenID Connect Provider
Redirect URI
The OpenID server will likely require a redirect URI. This URL will usually look something like this:
It is very important that you set the correct callback URI, otherwise it won't work!
Authentik Example
Here is an example configuration for the OpenID Connect provider for Authentik.

Example Configuration
Here's a complete example of the authentication section in your config.toml:
Last updated