F13.7 — Remove the legacy auth flows
| State | Closed |
| Parent | E13 |
| Iteration | Release 7 |
| Start Date | 2026-10-28 |
| Closed Date | 2026-10-28 |
| Predecessors | F13.5, F13.6 |
| Source | Owner decision, 2026-10-26 |
Stories: 3 Closed
| Story | State | Depends on |
|---|---|---|
| S13.7.1 — Remove the JWT flows | Closed (2026-10-28) | — |
| S13.7.2 — Remove the replaced Django auth code | Closed (2026-10-28) | — |
| S13.7.3 — Close the replacement table | Closed (2026-10-28) | — |
Remove the locally issued JWT flows and the auth code the new surface replaces, as What this replaces lists, with no aliases (ADR-0002).
Context
ADR-0006 removes the locally issued JWT flows. The other rows of What this replaces were done by earlier features, and this feature removes what is left and checks the whole table, except ngkit's row, which ngkit's epic owns.
S13.7.1 — Remove the JWT flows
State: Closed (2026-10-28)
Acceptance:
rn_forge.django.auth.jwtandrn-forge-django'sjwtextra are gone.- No extra, dependency group or
uv.lockentry namesdjangorestframework-simplejwt. - The
auth.samlviews,SampleSAMLLoginAPIViewand theauth.basicviews, which issue tokens throughLoginExchangeViewMixin, are gone with it, with their tests.
S13.7.2 — Remove the replaced Django auth code
State: Closed (2026-10-28)
Acceptance:
BaseCredentials,LoginPayload,AuthorizationViewMixin,PermissionKeyViewMixinandAuthorizationPermissionare gone, with their tests.BaseLoginViewMixin,BaseLoginAPIViewandLogoutAPIVieware gone, with their tests;auth_urlpatternsserves login and logout (owner decision, 2026-10-28).AuthorizedAPIViewandAuthorizedModelViewSetkeep their names and checkPermissionKeyPermission, so theUser,GroupandPermissionviewsets still require theirpermission_key(owner decision, 2026-10-28).- The
RN_FORGE_DJANGO["DRF"]["VIEWS"]settings block, read only byPermissionKeyViewMixin, is gone; a view setspermission_action_map. rn-forge-django'ssamlextra is gone, and no extra, dependency group oruv.lockentry names python3-saml or xmlsec. The Django auth guide points a SAML IdP at a broker.
S13.7.3 — Close the replacement table
State: Closed (2026-10-28)
Acceptance:
- A check in this feature's acceptance finds every removed symbol of
What this replaces absent from
packages/. rn-forge-webholds only the wire contract, andrn-forge-commonshas noauthextra.- The Django and FastAPI guides, the root
README.mdand the changelogs describe the new surface only, and record each removal as breaking. - Both strict MkDocs builds pass.
A root-level uv run pytest failed seven audit tests, on the base commit too:
an earlier test left logging at INFO, so setup events were captured. Those
tests now clear caplog after their setup.
Acceptance
- The locally issued JWT flows, the login views built on them and simplejwt are gone (S13.7.1).
- The replaced Django credentials, base login views and mixins are gone, and so
are the
samlextra and python3-saml (S13.7.2). - Every non-ngkit row of the replacement table is done, and the docs describe only the new surface (S13.7.3).
set -euo pipefail
absent() { local rc=0; rg -q --hidden --glob '!.git' --glob '!CHANGELOG.md' "$@" </dev/null || rc=$?; [ "$rc" -eq 1 ]; }
for s in JWTAuthentication JWTCredentials JWTUtils LoginExchangeViewMixin \
JWTAuthenticationViewMixin UserTokenView BaseCredentials LoginPayload \
SampleSAMLLoginAPIView AuthorizationViewMixin PermissionKeyViewMixin \
AuthorizationPermission BaseLoginViewMixin BaseLoginAPIView LogoutAPIView \
JwksCache any_role all_roles; do
absent -w "$s" packages
done
absent -i simplejwt packages uv.lock
absent -i -e 'python3-saml' -e 'xmlsec' packages uv.lock
absent -F 'rn-forge-commons[auth]' packages
uv run pytest
uv run pyright
sh docs/_update_board.sh --check