Skip to content

BFF Security Framework Blazor Support

Microsoft’s Blazor framework helps developers build rich, interactive web applications using C# and .NET. While Blazor is well-suited for rich web UIs, it introduces unique challenges around secure authentication and authorization — especially when rendering happens both on the server and in the browser.

The Duende BFF Security Framework addresses these challenges by keeping access tokens on the server and providing a unified authentication state across Blazor’s rendering modes.

A BFF-backed Blazor app has three elements: the backend (server-side logic and APIs), the frontend (the Blazor application), and the client (the browser). The BFF host acts as the combined backend and frontend host:

For a detailed architecture diagram and explanation, see the Architecture overview.

TopicDescription
Rendering Modes & BFFWhich Blazor rendering modes work with BFF and why
Data Access PatternsHow to securely call APIs from Blazor components
Getting Started: BlazorStep-by-step setup guide for a Blazor BFF app
Server-Side SessionsPersistent session storage for Blazor apps
Token ManagementHow BFF manages access tokens for Blazor