Blazor.BFF.OpenIDConnect.Template 1.2.8

dotnet new --install Blazor.BFF.OpenIDConnect.Template::1.2.8
This package contains a .NET Core 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 6
  • 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 6.0 standard packages

  • NetEscapades.AspNetCore.SecurityHeaders

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

  • net6.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
1.2.8 5,377 9/23/2022
1.2.7 8,247 8/26/2022
1.2.6 2,708 8/12/2022
1.2.5 2,716 8/7/2022
1.2.4 849 8/7/2022
1.2.3 7,007 7/9/2022
1.2.2 5,792 6/19/2022
1.2.1 7,590 5/21/2022
1.2.0 86 5/20/2022
1.1.0 7,620 3/20/2022
1.0.8 8,663 2/11/2022
1.0.7 4,287 1/23/2022
1.0.6 598 1/21/2022
1.0.5 113 1/18/2022
1.0.4 250 1/17/2022
1.0.3 1,127 1/9/2022
1.0.1 1,432 1/4/2022
1.0.0 2,207 12/25/2021

New template, support for HTTP port parameter