OpenIddict BFF security architecture using ASP.NET Core and Angular

May 16, 2026 ยท View on GitHub

.NET and npm build License

Secure Angular application using OpenIddict and ASP.NET Core with BFF

Debugging

Start the Angular project from the ui folder

ng serve --ssl

Start the ASP.NET Core projects from the server folder and the identityProvider

dotnet run

Or just open Visual Studio and run the solution.

Credits and used libraries

  • NetEscapades.AspNetCore.SecurityHeaders
  • Yarp.ReverseProxy
  • OpenIddict
  • ASP.NET Core
  • Angular, Angular CLI
  • OpenIddict

Angular nx Updates

npm install -g @angular/cli latest

ng update

ng update @angular/cli @angular/core

Powershell Migration

Add-Migration "InitIdp" -c ApplicationDbContext

Running manually

Update-Database -Context ApplicationDbContext

History

  • 2026-05-16 Updated packages, Updated Angular, Update Aspire
  • 2026-02-24 Updated packages, Updated Angular 21
  • 2025-12-07 .NET 10, Angular 21
  • 2025-08-03 Updated packages, Angular 20.1.4
  • 2024-12-31 Bootstrap 5
  • 2024-12-31 Fix script loading
  • 2024-12-18 .NET 9, Openiddict 6.0, Angular 19
  • 2024-10-17 Code clean up
  • 2024-10-17 Updated packages, update security headers performance
  • 2024-10-06 Updated Angular 18.2.7
  • 2024-10-03 Updated packages
  • 2024-06-06 Updated packages, Angular 18
  • 2024-04-27 Updated packages and build, code clean up
  • 2024-01-22 Updated packages
  • 2023-12-30 Open Redirect protection for login
  • 2023-11-16 .NET 8 updates

https://github.com/damienbod/bff-aspnetcore-angular

https://learn.microsoft.com/en-us/aspnet/core/introduction-to-aspnet-core

https://nx.dev/getting-started/intro

https://github.com/isolutionsag/aspnet-react-bff-proxy-example

https://github.com/openiddict

https://github.com/damienbod/bff-auth0-aspnetcore-angular

https://github.com/damienbod/bff-azureadb2c-aspnetcore-angular

https://github.com/damienbod/bff-aspnetcore-vuejs

https://github.com/damienbod/bff-MicrosoftEntraExternalID-aspnetcore-angular