Duende.BFF 2.3.0

Prefix Reserved
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Duende.BFF --version 2.3.0                
NuGet\Install-Package Duende.BFF -Version 2.3.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Duende.BFF" Version="2.3.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Duende.BFF --version 2.3.0                
#r "nuget: Duende.BFF, 2.3.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Duende.BFF as a Cake Addin
#addin nuget:?package=Duende.BFF&version=2.3.0

// Install Duende.BFF as a Cake Tool
#tool nuget:?package=Duende.BFF&version=2.3.0                

Backend for Frontend (BFF) Security Framework

Securing SPAs and Blazor WASM applications once and for all.

Overview

Duende.BFF is a framework for building services that solve security and identity problems in browser based applications such as SPAs and Blazor WASM applications. It is used to create a backend host that is paired with a frontend application. This backend is called the Backend For Frontend (BFF) host, and is responsible for all of the OAuth and OIDC protocol interactions. Moving the protocol handling out of JavaScript provides important security benefits and works around changes in browser privacy rules that increasingly disrupt OAuth and OIDC protocol flows in browser based applications. The Duende.BFF library makes it easy to build and secure BFF hosts by providing session and token management, API endpoint protection, and logout notifications.

Extensibility

Duende.BFF can be extended with:

  • custom logic at the session management endpoints
  • custom logic and configuration for HTTP forwarding to external API endpoints
  • custom data storage for server-side sessions and access/refresh tokens

Advanced Security Features

Duende.BFF supports a wide range of security scenarios for modern applications:

  • Mutual TLS
  • Proof-of-Possession
  • JWT secured authorization requests
  • JWT-based client authentication.

Getting Started

If you're ready to dive into development, check out our Quickstart Tutorial for step-by-step guidance.

For more in-depth documentation, visit our documentation portal.

Licensing

Duende.BFF is source-available, but requires a paid license for production use.

  • Development and Testing: You are free to use and explore the code for development, testing, or personal projects without a license.
  • Production: A license is required for production environments.
  • Free Community Edition: A free Community Edition license is available for qualifying companies and non-profit organizations. Learn more here.

Reporting Issues and Getting Support

  • For bug reports or feature requests, open an issue on GitHub: Submit an Issue.
  • For security-related concerns, please contact us privately at: security@duendesoftware.com.
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (6)

Showing the top 5 NuGet packages that depend on Duende.BFF:

Package Downloads
Duende.BFF.Yarp

Backend for frontend (BFF) host for ASP.NET Core (YARP integration)

Duende.BFF.EntityFramework

Entity Framework Core support for backend for frontend (BFF) host for ASP.NET Core

Elvia.Elvid.Bff.UserClient

Package Description

Vertiq.Features.Duende

A highly modular framework for writing Blazor applications with a hassle-free, vertical-sliced architecture - Easy. Flexible. Focused.

Vertiq.Hosting.BlazorServerSecurity

A highly modular framework for writing Blazor applications with a hassle-free, vertical-sliced architecture - Easy. Flexible. Focused.

GitHub repositories (3)

Showing the top 3 popular GitHub repositories that depend on Duende.BFF:

Repository Stars
thangchung/clean-architecture-dotnet
🕸 Yet Another .NET Clean Architecture, but for Microservices project. It uses Minimal Clean Architecture with DDD-lite, CQRS-lite, and just enough Cloud-native patterns apply on the simple eCommerce sample and run on Tye with Dapr extension 🍻
damikun/trouble-training
FullStack DDD/CQRS with GraphQL workshop including distributed tracing and monitoring. This shows the configuration from React frontend to .Net backend.
ardalis/WebApiBestPractices
Resources related to my Pluralsight course on this topic.
Version Downloads Last updated
3.0.0-preview.3 185 12/7/2024
3.0.0-preview.2 281 9/8/2024
3.0.0-preview.1 111,221 5/10/2024
2.3.0 1,291 12/20/2024
2.2.0 547,537 1/4/2024
2.2.0-preview.1 5,311 11/30/2023
2.1.1 294,665 7/6/2023
2.1.0 16,467 6/27/2023
2.1.0-preview.1 1,853 6/15/2023
2.0.0 309,301 11/22/2022
2.0.0-rc.1 1,625 11/9/2022
2.0.0-preview.5 20,447 10/19/2022
2.0.0-preview.4 581 10/4/2022
2.0.0-preview.3 2,148 8/19/2022
2.0.0-preview.2 219 8/3/2022
2.0.0-preview.1 195 6/27/2022
1.2.3 165,863 6/21/2022
1.2.2 56,627 6/13/2022
1.2.1 60,987 4/13/2022
1.2.0 16,275 4/1/2022
1.2.0-preview.1 334 3/10/2022
1.1.3 45,224 1/8/2022
1.1.2 2,529 1/2/2022
1.1.1 698 12/23/2021
1.1.0 15,029 12/16/2021
1.1.0-preview.2 12,670 11/24/2021
1.1.0-preview.1 7,125 11/10/2021
1.0.0 9,988 10/24/2021
1.0.0-rc.4 8,458 9/29/2021
1.0.0-rc.3 9,322 6/30/2021
1.0.0-rc.2 281 6/16/2021
1.0.0-rc.1 19,506 5/28/2021
1.0.0-preview.2 6,157 4/15/2021
1.0.0-preview.1 948 3/26/2021