feat(media): chaptarr native OIDC instead of forward_auth
Deploy Caddyfile to valhalla / deploy (push) Successful in 1m23s
Deploy Caddyfile to valhalla / deploy (push) Successful in 1m23s
Chaptarr has built-in OIDC (/signin-oidc), so per the auth standard it gets Pattern A: new homelab-chaptarr OAuth2 provider, old forward_auth proxy provider removed, Caddy block reduced to internal_only + proxy. setup-books-auth.py now handles both OIDC apps generically. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e0240d8e10
commit
f92cad4d66
5 files changed
+72
-48
No files matched your search
@@ -12,7 +12,7 @@ storyteller reads both libraries :ro ─► /storage1/labdata/storyteller (align
|
||||
|
||||
| Service | Container:port | Host port | URL |
|
||||
|---|---|---|---|
|
||||
| chaptarr | `chaptarr:8789` | 8789 | https://chaptarr.ginnoir.com (forward_auth, `/api/*` bypass) |
|
||||
| chaptarr | `chaptarr:8789` | 8789 | https://chaptarr.ginnoir.com (native OIDC, LAN + tailnet only) |
|
||||
| calibre-web-automated | `calibre-web-automated:8083` | 8083 | https://books.ginnoir.com (forward_auth, `/opds*` + `/kobo/*` bypass) |
|
||||
| audiobookshelf | `audiobookshelf:80` | 13378 | https://audiobooks.ginnoir.com (native OIDC, LAN + tailnet only) |
|
||||
| storyteller | `storyteller:8001` | 8001 | https://storyteller.ginnoir.com (forward_auth, `/api/*` bypass) |
|
||||
@@ -35,7 +35,12 @@ sudo chown -R 1000:1000 /config/chaptarr /config/calibre-web-automated /config/a
|
||||
|
||||
`scripts/run-books-auth.sh` creates everything below (idempotent, runs `scripts/setup-books-auth.py` through `ak shell`). **Done on 2026-10-18.**
|
||||
|
||||
- **chaptarr / books / storyteller (Pattern B):** proxy providers `homelab-{chaptarr,books,storyteller}` (pk 43–45). They're `forward_single`, cloned from `homelab-sonarr`, attached to the embedded outpost, and each has an app with the same slug.
|
||||
- **books / storyteller (Pattern B):** proxy providers `homelab-{books,storyteller}` (pk 44–45). They're `forward_single`, cloned from `homelab-sonarr`, attached to the embedded outpost, and each has an app with the same slug.
|
||||
- **Chaptarr (Pattern A):** OIDC provider `homelab-chaptarr` (pk 47) plus app `chaptarr`, with the strict redirect URI `https://chaptarr.ginnoir.com/signin-oidc`. This replaced the forward_auth provider it started with (pk 43). The client ID and secret are in `stack.env` (`CHAPTARR_OIDC_CLIENT_*`).
|
||||
In Chaptarr, go to Settings → General → Authentication, choose OIDC, and fill in:
|
||||
- OIDC Authority: `https://auth.ginnoir.com/application/o/chaptarr/`
|
||||
- Scopes: `openid profile email`
|
||||
- Allowed Emails: your Authentik account email(s)
|
||||
- **Audiobookshelf (Pattern A):** OIDC provider `homelab-audiobooks` (pk 46) plus app `audiobooks`. Its strict redirect URIs are `https://audiobooks.ginnoir.com/auth/openid/{callback,mobile-redirect}` and `audiobookshelf://oauth`. The client ID and secret are in `stack.env` (`ABS_OIDC_CLIENT_*`).
|
||||
**Still to do in the ABS UI** (it keeps OIDC settings in its own database): go to Settings → Authentication → OpenID Connect.
|
||||
- Issuer URL: `https://auth.ginnoir.com/application/o/audiobooks/`. Click *Auto-populate*, then paste the client ID and secret.
|
||||
|
||||
@@ -12,3 +12,8 @@ STORYTELLER_SECRET_KEY=5b41f526eb62c2fbe17527b65a0e71ff06d5927fbeb869541f52e812b
|
||||
# ABS stores OIDC config in its own DB (Settings → Authentication).
|
||||
ABS_OIDC_CLIENT_ID=H617VXaM04KA0URJyWI52ThBpC3crIAZY77UYlzt
|
||||
ABS_OIDC_CLIENT_SECRET=1Tmw0PLw8CP82JX4Vz5nuOfpykh6XKngrU8a4Vspc6ZsIarJn3mG5GwKre1D5DnVqfF7MXbOc5g83lkR7NUcHPjlj3QgPX4BFnbUdl2r09LHrcH9X8CY4gJP0Sl1hdcr
|
||||
|
||||
# chaptarr — Authentik OIDC client (homelab-chaptarr, pk 47). Reference only:
|
||||
# chaptarr stores OIDC config in its own DB (Settings → General → Authentication).
|
||||
CHAPTARR_OIDC_CLIENT_ID=BlQNRexLVkgUuH8j0ybmFSiD93dw1mBUF6tsjG6b
|
||||
CHAPTARR_OIDC_CLIENT_SECRET=THoqN0qLbPuni9cg0vqeid200VsgXKs1WihOSYV8NqciIcp6eCTmvYeRHKYWxF7jOiCBUdL3kP6e4e06SeQr0vwzFSz8rLYYCRomQqizv1iWfRGv0HjfDgkNj49rwrz6
|
||||
Reference in new issue
Block a user