qualpipe_webapp.frontend.main#

FastAPI application serving QualPipe frontend routes.

For API endpoint details and schemas, use the autogenerated Swagger UI at /docs (OpenAPI at /openapi.json).

Auth is delegated entirely to the BFF (mock_bff in dev, web-bff in prod). The frontend holds no session state of its own – it reads the BFF session cookie and calls /auth/session + /auth/me on every protected request.

Functions

health_check()

Health check endpoint for Kubernetes probes.

login_page(request[, next])

Redirect to the BFF login page.

logout(request)

POST logout via BFF with CSRF token, then forward its redirect.

not_found(request, exc)

Render the custom 404 page.

read_array_element_type_subitem(...)

Render a configured subitem page for a valid array element type.

read_auxiliary(request)

Render the auxiliary placeholder page.

read_home(request)

Render the home page.

read_lst(request)

Render the LST summary page.

read_mst(request)

Render the MST summary page.

read_root()

Redirect the root path to the home page.

read_sst(request)

Render the SST summary page.

Classes

BffAuthMiddleware(app[, dispatch])

Redirect unauthenticated users to the BFF login page.