Skip to content

E13 — Authentication and authorization

State Closed
Start Date 2026-10-26
Closed Date 2026-10-28
Feature State Iteration Stories
F13.1 — Auth design Closed release-7 5 Closed
F13.2 — rn-forge-auth package Closed release-7 5 Closed
F13.3 — Core contracts and token profiles Closed release-7 9 Closed
F13.4 — Protocol adapters Closed release-7 6 Closed · 1 Removed
F13.5 — Django binding Closed release-7 7 Closed
F13.6 — FastAPI binding Closed release-7 6 Closed
F13.7 — Remove the legacy auth flows Closed release-7 3 Closed

Standards-based authentication and authorization for new pykit web applications: SSO through OIDC (with SAML IdPs through a broker), social login, optional local passwords, server-side sessions for browsers, bearer tokens for machine clients, and authorization computed from the application's own data. Django and FastAPI follow one pattern. The framework-neutral code moves to a new rn-forge-auth package, and each framework package binds it. The package and the framework adapters ship together, in one release.

Every feature here builds on the design, which F13.1 settles. Auth patterns is the background reference on the industry patterns. The browser client is ngkit's work, tracked in ngkit's own epic against the same design.

Back to the work index

rn-forge-auth follows the package rule and adapter structure that E15 sets (ADR-0011).

F13.1 records the design as ADRs and evaluates the libraries, then writes the stories of F13.3 to F13.7, which all ship in Release 7. F13.2 creates the rn-forge-auth package and moves the existing code into it. F13.3 to F13.7 follow it, in order, and are written inside rn-forge-auth and the framework packages.

Considered and rejected

  • A fixed type URI for csrf-failed alone, so a client can tell it from forbidden without a type_base. Rejected (owner decision, 2026-10-28): it breaks the about:blank rule. A binding that mounts the auth surface instead refuses to start without a problem type_base, so the two 403s differ in type (CSRF). Raised by S13.3.7; applies to S13.5.3 and S13.6.3.