Blazor.BFF.OpenIDConnect.Template
3.0.5
dotnet new install Blazor.BFF.OpenIDConnect.Template::3.0.5
Blazor.BFF.OpenIDConnect.Template
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 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 8.0 standard packages
- NetEscapades.AspNetCore.SecurityHeaders
Links
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.5 | 144 | 10/7/2024 |
3.0.4 | 201 | 8/14/2024 |
3.0.3 | 1,974 | 2/1/2024 |
3.0.2 | 1,003 | 1/14/2024 |
3.0.1 | 1,448 | 12/31/2023 |
3.0.0 | 1,910 | 11/26/2023 |
2.1.3 | 4,363 | 11/3/2023 |
2.1.2 | 3,208 | 10/25/2023 |
2.0.4 | 2,567 | 8/6/2023 |
2.0.3 | 4,464 | 7/8/2023 |
2.0.2 | 3,590 | 3/11/2023 |
2.0.1 | 1,583 | 1/22/2023 |
2.0.0 | 3,709 | 12/2/2022 |
1.2.8 | 9,645 | 9/23/2022 |
1.2.7 | 8,624 | 8/26/2022 |
1.2.6 | 3,074 | 8/12/2022 |
1.2.5 | 3,060 | 8/7/2022 |
1.2.4 | 1,194 | 8/7/2022 |
1.2.3 | 7,362 | 7/9/2022 |
1.2.2 | 6,153 | 6/19/2022 |
1.2.1 | 7,938 | 5/21/2022 |
1.2.0 | 463 | 5/20/2022 |
1.1.0 | 8,006 | 3/20/2022 |
1.0.8 | 9,018 | 2/11/2022 |
1.0.7 | 4,630 | 1/23/2022 |
1.0.6 | 963 | 1/21/2022 |
1.0.5 | 459 | 1/18/2022 |
1.0.4 | 593 | 1/17/2022 |
1.0.3 | 1,311 | 1/9/2022 |
1.0.1 | 1,632 | 1/4/2022 |
1.0.0 | 2,390 | 12/25/2021 |
New template, support for HTTP port parameter