OpenID Connect (OIDC)
OIDC adds browser sign-in to the self-hosted server and is disabled by default.
With OIDC disabled, setting WYRM_API_KEY means you need that key to use Wyrm:
the web app asks for it, and API requests send it in the x-api-key header.
If the key is also unset, the server allows unauthenticated access. The native
desktop app uses its generated API key.
All authenticated users share the same feeds, settings, and read state. If
you’d like separate accounts per user, upvote
#372. By default, any user authenticated by the configured provider can access the
instance. Set oidc_allowed_subjects to restrict access to specific provider
subject identifiers (sub claims).
-
In your identity provider (Authentik, Authelia, Keycloak, etc.), create an OIDC client for Wyrm that uses the authorization code flow with PKCE (S256). If the provider gives you a client secret, Wyrm sends it using
client_secret_basic. For a public client with no secret, leaveoidc_client_secretout. -
Register the callback URL
{public_url}/api/v1/auth/oidc/callback, wherepublic_urlis the HTTPS origin you reach Wyrm on, such ashttps://rss.example.com/api/v1/auth/oidc/callback. Wyrm requests theopenidscope. -
Configure the backend using environment variables or these equivalent keys in
config/wyrm.toml:public_url = "https://rss.example.com"oidc_issuer_url = "https://sso.example.com/realms/wyrm"oidc_client_id = "wyrm"oidc_client_secret = "replace-me" # omit for a public client# oidc_allowed_subjects = "subject-id-1,subject-id-2" # optional access restriction# api_key = "independent-api-key" # optional, still works without OIDCEnvironment equivalents are
WYRM_PUBLIC_URL,WYRM_OIDC_ISSUER_URL,WYRM_OIDC_CLIENT_ID,WYRM_OIDC_CLIENT_SECRET, andWYRM_OIDC_ALLOWED_SUBJECTS. These are backend settings; do not put client secrets in frontend build configuration. -
Restart the server. The public URL, issuer URL, and client ID are required. If you configure a subject allowlist, it must contain at least one subject. The server discovers the provider when a user starts OIDC sign-in. With both methods configured, API keys grant access even when the provider is unavailable. With OIDC enabled and no API key, access requires an OIDC session.