The modern unified auth framework for .NET
open sourceApache-2.0self-hostablefree
UltimateAuth is an Apache-2.0 authentication framework for .NET 8, 9 and 10 from CodeBeam, the makers of MudBlazor Extensions. One server and one client API cover Blazor Server, Blazor WebAssembly, Blazor Web App, .NET MAUI and backend APIs, with selectable session, token, hybrid and semi-hybrid modes, PKCE flows, device-aware sessions with reuse detection, and users, credentials, roles and authorization policies. It ships Blazor login components, an in-memory store for development and Entity Framework Core persistence. It is early (0.1.x released, 0.2 in preview): MFA, distributed caching and multi-tenant management are on its public roadmap.
Problems it solves
- I rebuild login, sessions and token refresh for every new .NET app
- one auth setup that works across Blazor Server, Blazor WebAssembly and .NET MAUI clients
- Blazor login forms and protected pages without wiring ASP.NET Identity and cookies by hand
- choose between cookie sessions, tokens or a hybrid of both in a .NET app
- log a user out of all their other devices but keep the current one signed in
- detect refresh token reuse and track which devices a user is signed in on
- PKCE login flow for a .NET MAUI or Blazor WebAssembly app
- store users, sessions and credentials with Entity Framework Core
- define roles and authorization policies for pages and API endpoints in .NET
Features
- session, token, hybrid and semi-hybrid authentication modes
- automatic client profile detection (Blazor Server, WebAssembly, MAUI)
- PKCE flows
- device-aware sessions and session reuse detection
- unified session and token lifecycle with refresh rotation
- IUAuthClient API for login, logout, users, sessions, credentials and authorization
- Blazor components: UAuthApp, UAuthLoginForm, [UAuthAuthorize]
- users, credentials, roles and authorization policies
- password policy and history, lockout and recovery
- in-memory and Entity Framework Core persistence
View 2 more
- event-driven extensibility
- Identity Lab sandbox and runnable samples
Limitations
Alternatives
The same job
These do what UltimateAuth does.
- Keycloak Open source identity and access management for modern applications and services
