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>
10 lines
579 B
Bash
Executable File
10 lines
579 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Creates the books-stack Authentik providers/apps (idempotent). Run on valhalla.
|
|
# Copies the OIDC client ids/secrets out on success.
|
|
set -euo pipefail
|
|
here="$(cd "$(dirname "$0")" && pwd)"
|
|
docker cp "$here/setup-books-auth.py" authentik_server:/tmp/setup-books-auth.py
|
|
docker exec authentik_server ak shell -c "exec(open('/tmp/setup-books-auth.py').read())" 2>&1 | grep -E '^(PROXY|OIDC)|Error|Traceback'
|
|
docker cp authentik_server:/tmp/books-oidc.env "${1:-./books-oidc.env}"
|
|
docker exec authentik_server rm -f /tmp/books-oidc.env /tmp/setup-books-auth.py
|