docs(auth): .env.example, README, IdP-Anleitungen und E2E-Skript für Keycloak/authentik
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
fe278d465f
commit
6ff41ce8ec
7 files changed
+487
-166
No files matched your search
@@ -21,3 +21,29 @@ AUTHENTIK_PORT=9000
|
||||
AUTHENTIK_SECRET_KEY=dev-only-insecure-secret-key-change-me
|
||||
AUTHENTIK_DB_PASSWORD=authentik-dev
|
||||
AUTHENTIK_BOOTSTRAP_PASSWORD=admin-dev
|
||||
|
||||
# --- Auth (ADR 0001, docs/auth/) ---------------------------------------------
|
||||
# Ohne diese Werte verhält sich die App wie Upstream (nur naturalcrit-Login).
|
||||
# Aktive Login-Methoden, kommagetrennt: oidc, naturalcrit.
|
||||
# leer + HB_OIDC_ISSUER gesetzt -> oidc,naturalcrit (Auswahlseite /auth/login)
|
||||
# leer ohne Issuer -> naturalcrit
|
||||
# oidc -> nur OIDC (nc_session und /local/login gesperrt)
|
||||
# naturalcrit -> nur Alt-Login (/auth/oidc/* gesperrt)
|
||||
HB_AUTH_PROVIDERS=oidc
|
||||
# Öffentliche URL der App, ohne Schrägstrich am Ende (Redirect-URI: <HB_PUBLIC_URL>/auth/oidc/callback)
|
||||
HB_PUBLIC_URL=http://localhost:8000
|
||||
# Mindestens 32 Byte, nur Umgebung. Erzeugen: openssl rand -base64 48
|
||||
HB_SESSION_SECRET=dev-only-session-secret-change-me-0123456789
|
||||
HB_SESSION_TTL=7d
|
||||
# Aus Compose heraus: Keycloak (docker compose --profile keycloak up -d)
|
||||
HB_OIDC_ISSUER=http://keycloak.localhost:8080/realms/homebrewery
|
||||
# ... oder authentik (docker compose --profile authentik up -d)
|
||||
# HB_OIDC_ISSUER=http://authentik.localhost:9000/application/o/homebrewery/
|
||||
HB_OIDC_CLIENT_ID=homebrewery
|
||||
HB_OIDC_CLIENT_SECRET=dev-only-client-secret
|
||||
# Optional
|
||||
# HB_OIDC_SCOPES=openid profile email
|
||||
# HB_OIDC_USERNAME_CLAIM=preferred_username
|
||||
# HB_OIDC_LINK_BY_EMAIL=false
|
||||
# HB_OIDC_END_SESSION=false
|
||||
# HB_OIDC_LABEL=Anmelden
|
||||
Reference in new issue
Block a user