AlefCarlos.MudBlazor.Templates
1.0.4
dotnet new install AlefCarlos.MudBlazor.Templates::1.0.4
blazor-server-template
Get Started
dotnet new install AlefCarlos.Blazor.Templates
Build
To install using local directory:
dotnet new install .\
Templates
mudblazor-server-solution
Using
dotnet new mudblazor-server-solution -n AppName -o ./app
This templates add common features to the Basic Blazor template. It ensures a production-ready application
features
- Auth using OIDC
- NotFound capability
- Localization
- Sync with browsertime
- Global error catcher
- User Session Management
- Aspire Integration
- Keycloak
Authentication
This template offers a keycloak resource using Aspire and a realm import as well
Start creating an user on local realm to log the application in
User Session Management
Session Store
Duende Blazor Server Access Token Management adds User Session management for Blazor safely.
There is a in-memory store(ServerSideTokenStore.cs) for tokens, but you should user a persisted one.
Propagate token into http requests
Add the handler to the httpclient using Http Client Factory and the token will be automaticaly injected, if the token is expired, it refreshes it befor sending the request
builder.Services.AddHttpClient<CatalogClient>(client =>
{
client.BaseAddress = new Uri("https://apis.company.com/catalog/");
}).AddUserAccessTokenHandler(); //<-- this one
Back-Channel Logout
This template implements RemoteSignOut following the RFC
-
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.