Skip to content

Speakr is a personal, self-hosted web application designed for transcribing audio recordings

Python
1.6 KB
Raw Blame
###############################################################################
# SSO (OIDC) Authentication
###############################################################################

# Enable SSO (Single Sign-On) authentication. Requires discovery URL and client credentials.
ENABLE_SSO=false

# Display name for the provider (shown in UI button)
SSO_PROVIDER_NAME=Keycloak

# OIDC client credentials
SSO_CLIENT_ID=speakr
SSO_CLIENT_SECRET=change-me

# OIDC discovery document URL (well-known endpoint)
SSO_DISCOVERY_URL=https://keycloak.example.com/realms/master/.well-known/openid-configuration

# Public redirect URI exposed by Speakr (must be registered in the IdP)
SSO_REDIRECT_URI=https://speakr.example.com/auth/sso/callback

# Auto-registration settings
# Allow automatic account creation for new users signing in via SSO.
SSO_AUTO_REGISTER=true

# Comma-separated list of allowed email domains for auto-registration.
# Leave empty to allow all domains (e.g., example.com,company.org).
SSO_ALLOWED_DOMAINS=

# Require a verified email before an SSO login may link to (or provision) a
# local account by email address. Secure by default (true): otherwise a
# malicious or misconfigured IdP could take over an account by asserting its
# email. Set to false ONLY for a trusted IdP that does not send the
# email_verified claim, otherwise all email-bearing logins from that IdP are
# rejected. Users already linked by SSO subject are unaffected either way.
SSO_REQUIRE_VERIFIED_EMAIL=true

# Claims used to map user profile fields
SSO_DEFAULT_USERNAME_CLAIM=preferred_username
SSO_DEFAULT_NAME_CLAIM=name