Skip to main content
  1. Tags/

Jwt

Production Readiness: Auth, RBAC, and Deployment

Deep Dive AI Engineering · Apr 12, 2026 · 13 min read
Revised, split, and expanded — The two halves of this article are now separate chapters in the MAF v1: Python and .NET series: the auth + hardening half is covered by MAF v1 — 20c production hardening (with the password reset, refresh-token rotation, and graceful secret rotation that the original missed), and the deployment half is covered by MAF v1 — 25 deployment (with the .NET twin Dockerfile and a dev.sh that polls instead of sleeping). The architecture below is still the canonical reference for the combined story.
Production Readiness: Auth, RBAC, and Deployment

Handling Authorization and Role-Based Access Control (RBAC)

Deep Dive .NET · Dec 1, 2024 · 19 min read
Introduction # Static role checks ([Authorize(Roles = "Admin")]) fall apart the first time someone asks you to add a permission without a redeploy. Once roles and permissions have to change at runtime, hard-coded role attributes become a liability. The Contact Management Application takes a different route: a dynamic policy provider that builds authorization policies from the database at request time, covering both the backend API and the Angular frontend, wired into JWT authentication without breaking the separation of concerns Clean Architecture expects.
Handling Authorization and Role-Based Access Control (RBAC)