Skip to content

Template: auth 0.2.0 + ui 0.7.0 — basicbar_auth.urls, whoami_payload, Discovery-Fail-fast - #17

Merged
rrolf merged 1 commit into
mainfrom
feat/template-auth-0.2
Oct 1, 2026
Merged

rrolf merged 1 commit into
mainfrom
feat/template-auth-0.2

Conversation

@rrolf

@rrolf rrolf commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Was

Template-Nachzug zu #15 (ui 0.7.0) und #16 (auth 0.2.0):

  • Pins: auth/v0.2.0, ui/v0.7.0.
  • config/urls.py: path("", include("basicbar_auth.urls")) + eigenes api/whoami/; die lokalen logout_view/set_language entfallen, accounts/views.py ist nur noch whoami = {**whoami_payload(request), ai_enabled, content_*}.
  • accounts.User erbt language von AbstractBasicUser (Migration 0001 unverändert, makemigrations --check leer).
  • Settings: mit OIDC_OP_ISSUER, aber ohne auflösbare Endpunkte (Discovery unerreichbar) bricht der Start ohne DEBUG mit ImproperlyConfigured ab statt jeden Login später scheitern zu lassen; mit DEBUG startet der Stack weiter (Keycloak darf noch hochfahren).

Verifiziert

  • Render (use_lti=true, ci_host=github), ruff grün, Frontend npm install && build grün (280 kB, ohne TipTap).
  • Backend im Container gegen Postgres mit den Requirements vom Tag: check, makemigrations --check leer, Tests grün (inkl. Starter-Tests für whoami/set_language, die jetzt über die Paket-Route laufen).
  • Guard: wirft ohne DEBUG, startet mit DEBUG.

Danach

Konsumenten-PRs auth 0.2.0 für ausleihbar, abstimmbar, erkennbar, modulierbar (migrate, include("basicbar_auth.urls"), lokale Views löschen).

🤖 Generated with Claude Code

…yload, Discovery-Fail-fast

Pins auf auth/v0.2.0 und ui/v0.7.0. config/urls.py bindet
basicbar_auth.urls ein (OIDC-Routen inkl. tolerantem Callback,
api/whoami/language/); accounts/views.py enthält nur noch whoami als
{**whoami_payload(request), …Feature-Flags}; accounts.User erbt language.
Settings brechen produktiv mit ImproperlyConfigured ab, wenn
OIDC_OP_ISSUER gesetzt ist, die Discovery aber keine Endpunkte lieferte.

Nagelprobe: Render (use_lti, github), ruff, Frontend-Build (280 kB ohne
TipTap), Backend im Container gegen Postgres: check, makemigrations
--check leer, Tests grün, Guard wirft ohne DEBUG und schweigt mit DEBUG.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@rrolf
rrolf merged commit b3188fe into main Oct 1, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant