Blazor.BFF.OpenIDConnect.Template 3.0.3

dotnet new install Blazor.BFF.OpenIDConnect.Template::3.0.3
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 8
  • BFF (backend for frontend) with Standard OpenID Connect
  • OAuth2 and OpenID Connect OIDC
  • No tokens in the browser

Using the template

install

dotnet new -i 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 -u Blazor.BFF.OpenIDConnect.Template

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

  • NetEscapades.AspNetCore.SecurityHeaders

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

  • net8.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.3 1,779 2/1/2024
3.0.2 940 1/14/2024
3.0.1 1,392 12/31/2023
3.0.0 1,854 11/26/2023
2.1.3 4,300 11/3/2023
2.1.2 3,150 10/25/2023
2.0.4 2,518 8/6/2023
2.0.3 4,421 7/8/2023
2.0.2 3,554 3/11/2023
2.0.1 1,542 1/22/2023
2.0.0 3,676 12/2/2022
1.2.8 9,601 9/23/2022
1.2.7 8,586 8/26/2022
1.2.6 3,044 8/12/2022
1.2.5 3,028 8/7/2022
1.2.4 1,164 8/7/2022
1.2.3 7,330 7/9/2022
1.2.2 6,122 6/19/2022
1.2.1 7,907 5/21/2022
1.2.0 437 5/20/2022
1.1.0 7,969 3/20/2022
1.0.8 8,982 2/11/2022
1.0.7 4,603 1/23/2022
1.0.6 935 1/21/2022
1.0.5 427 1/18/2022
1.0.4 563 1/17/2022
1.0.3 1,285 1/9/2022
1.0.1 1,595 1/4/2022
1.0.0 2,350 12/25/2021

New template, support for HTTP port parameter