Blazor.BFF.OpenIDConnect.Template 3.0.7

dotnet new install Blazor.BFF.OpenIDConnect.Template::3.0.7                
This package contains a .NET Template Package you can call from the shell/command line.

Blazor.BFF.OpenIDConnect.Template

.NET NuGet Status Change log

This template can be used to create a Blazor WASM application hosted in an ASP.NET Core Web app using OpenID Connect to authenticate using the BFF security architecture. (server authentication) This removes the tokens from the browser and uses cookies with each HTTP request, response. The template also adds the required security headers as best it can for a Blazor application.

Features

  • WASM hosted in ASP.NET Core 9
  • BFF (backend for frontend) with Standard OpenID Connect
  • OAuth2 and OpenID Connect OIDC
  • No tokens in the browser

Using the template

install

dotnet new install Blazor.BFF.OpenIDConnect.Template

run

dotnet new blazorbffoidc -n YourCompany.Bff --HttpsPortCustom 44348

Use the -n or --name parameter to change the name of the output created. This string is also used to substitute the namespace name in the .cs file for the project.

Setup after installation

Add the OpenID Connect App registration settings

{
  "OpenIDConnectSettings": {
    "Authority": "--your-authority--",
    "ClientId": "--client ID--",
    "ClientSecret": "--client-secret (user secrets)--"
  },

uninstall

dotnet new uninstall Blazor.BFF.OpenIDConnect.Template

Credits, Used NuGet packages + ASP.NET Core 9.0 standard packages

  • NetEscapades.AspNetCore.SecurityHeaders

https://github.com/andrewlock/NetEscapades.AspNetCore.SecurityHeaders

  • net9.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.0.7 101 12/10/2024
3.0.6 78 12/10/2024
3.0.5 169 10/7/2024
3.0.4 207 8/14/2024
3.0.3 1,980 2/1/2024
3.0.2 1,007 1/14/2024
3.0.1 1,452 12/31/2023
3.0.0 1,914 11/26/2023
2.1.3 4,367 11/3/2023
2.1.2 3,212 10/25/2023
2.0.4 2,571 8/6/2023
2.0.3 4,468 7/8/2023
2.0.2 3,594 3/11/2023
2.0.1 1,587 1/22/2023
2.0.0 3,713 12/2/2022
1.2.8 9,649 9/23/2022
1.2.7 8,628 8/26/2022
1.2.6 3,078 8/12/2022
1.2.5 3,064 8/7/2022
1.2.4 1,198 8/7/2022
1.2.3 7,366 7/9/2022
1.2.2 6,157 6/19/2022
1.2.1 7,942 5/21/2022
1.2.0 467 5/20/2022
1.1.0 8,010 3/20/2022
1.0.8 9,022 2/11/2022
1.0.7 4,634 1/23/2022
1.0.6 967 1/21/2022
1.0.5 463 1/18/2022
1.0.4 597 1/17/2022
1.0.3 1,315 1/9/2022
1.0.1 1,636 1/4/2022
1.0.0 2,394 12/25/2021

Support .NET 9