From c2e3436d66621e874d8e8a8b5fe3f9a84f59d72f Mon Sep 17 00:00:00 2001 From: krokosik Date: Sun, 21 Jun 2026 16:19:07 +0200 Subject: [PATCH] fix(docs): correct OIDC callback URL to use OIDC_NAME The docs hardcoded /api/auth/callback/oidc, but the actual provider id is env.OIDC_NAME?.toLowerCase() ?? 'oidc' (src/server/auth.ts:249), so users setting OIDC_NAME=tinyauth need /api/auth/callback/tinyauth. Closes #679 --- docs/AUTHENTICATION.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/AUTHENTICATION.md b/docs/AUTHENTICATION.md index a71d1351..4cc279d6 100644 --- a/docs/AUTHENTICATION.md +++ b/docs/AUTHENTICATION.md @@ -18,10 +18,18 @@ Provider-specific variables are listed in [CONFIGURATION](CONFIGURATION.md). ## OIDC callback -For generic OIDC providers, configure the callback URL as: +For generic OIDC providers, the callback URL uses the lowercased value of the +`OIDC_NAME` env var as the provider segment of the path: ``` -https:///api/auth/callback/oidc +https:///api/auth/callback/ +``` + +`` defaults to `oidc` when `OIDC_NAME` is not set. For example, +with `OIDC_NAME=tinyauth` the callback URL is: + +``` +https:///api/auth/callback/tinyauth ``` ## Provider setup notes