pdf-quiz-generator/backend/app
Daniel 12453ba473
Some checks failed
Tests / backend (push) Failing after 4s
Tests / frontend (push) Failing after 28s
Tests / e2e (push) Failing after 34s
fix: a role is not set here while the provider holds it
Two endpoints still set a role locally — PUT /access/{id}/role and PUT
/admin/users/{id}/role. With OIDC_ROLE_CLAIM configured, my sync applies
the person's groups on every sign-in, so a role set in the app lasts
until they next sign in and is then overwritten. That is the worst kind
of setting: it appears to work, holds for an afternoon, and quietly
undoes itself.

Both now answer 409 naming where the switch actually is. With no mapping
configured they behave exactly as before, which is what a site with no
provider needs.

The two existing tests now patch is_configured explicitly rather than
inheriting whatever the container's .env happens to say — a test that
reads differently on two machines is not a test.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TqXevQJhxFrM7jJg82cgZN
2026-09-13 14:04:16 +02:00
..
api feat: a versioned API, refresh tokens, and an end-to-end stack that found four bugs 2026-09-13 01:23:38 +02:00
middleware Add comprehensive structured logging with Loki + Grafana 2026-04-11 02:53:54 +02:00
models feat: no invite codes and no email sign-in codes — that is the provider's job 2026-09-13 13:56:48 +02:00
routers fix: a role is not set here while the provider holds it 2026-09-13 14:04:16 +02:00
schemas feat: no invite codes and no email sign-in codes — that is the provider's job 2026-09-13 13:56:48 +02:00
services fix: a role is not set here while the provider holds it 2026-09-13 14:04:16 +02:00
tasks feat: the bank belongs to a role, not to a person 2026-09-13 13:26:25 +02:00
utils feat: the bank belongs to a role, not to a person 2026-09-13 13:26:25 +02:00
__init__.py Initial commit: PDF Quiz Generator app 2026-03-30 20:04:53 +00:00
cli.py refactor: remove the LMS 2026-09-12 23:27:51 +02:00
config.py feat: SSO reads roles from the provider's groups, and needs a verified address 2026-09-13 05:20:52 +02:00
database.py Tag filtering, multi-category, bug fixes, image validation, docs 2026-04-04 22:48:26 +02:00
logging_config.py Add comprehensive structured logging with Loki + Grafana 2026-04-11 02:53:54 +02:00
main.py feat: no invite codes and no email sign-in codes — that is the provider's job 2026-09-13 13:56:48 +02:00