MudraX.Blazor.Keycloak.Web
9.0.0.2
dotnet add package MudraX.Blazor.Keycloak.Web --version 9.0.0.2
NuGet\Install-Package MudraX.Blazor.Keycloak.Web -Version 9.0.0.2
<PackageReference Include="MudraX.Blazor.Keycloak.Web" Version="9.0.0.2" />
<PackageVersion Include="MudraX.Blazor.Keycloak.Web" Version="9.0.0.2" />
<PackageReference Include="MudraX.Blazor.Keycloak.Web" />
paket add MudraX.Blazor.Keycloak.Web --version 9.0.0.2
#r "nuget: MudraX.Blazor.Keycloak.Web, 9.0.0.2"
#addin nuget:?package=MudraX.Blazor.Keycloak.Web&version=9.0.0.2
#tool nuget:?package=MudraX.Blazor.Keycloak.Web&version=9.0.0.2
MudraX.Blazor.Keycloak.Web
MudraX.Blazor.Keycloak.Web is the library for the MudraX.Blazor project, designed to provide essential functionalities and shared logic for the entire application ecosystem. This library is built with .NET 9 and is optimized for modern cross-platform development.
Installation
To install the library, use the following NuGet command:
Install-Package MudraX.Blazor.Keycloak.Web
Usage
appsettings.json
{
"Keycloak": {
"realm": "<realm name>",
"auth-server-url": "http://localhost:8080/",
"ssl-required": "none",
"resource": "<client name>",
"credentials": {
"secret": "<client-secret>"
},
"confidential-port": 0
}
}
Program.cs
builder.Services.AddMudraBlazorServices(supportedCultures: ["en-US", "zh-TW"]);
builder.Services.AddMudraKeycloakServices(builder.Configuration);
app.UseMudraBlazorServices();
app.UseMudraKeycloakServices();
_Imports.razor
Global setting that protects ALL the pages in _Imports.razor
@using Microsoft.AspNetCore.Authorization
@using Microsoft.AspNetCore.Components.Authorization
@attribute [Authorize]
...
@using MudraX.Blazor.Keycloak.Web.Components.Layout
MainLayout.razor
Add AppUserMenu to MainLayout.razor
<ApplicationLayout>
<ApplcationBar>
<AppUserMenu />
</ApplcationBar>
Contributing
Contributions are welcome! Please follow the contribution guidelines to submit issues or pull requests.
License
This project is licensed under the MIT License.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net9.0
- Keycloak.AuthServices.Authentication (>= 2.6.1)
- Microsoft.AspNetCore.Components.Web (>= 9.0.4)
- MudraX.Blazor.Web (>= 9.0.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.