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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MudraX.Blazor.Keycloak.Web" Version="9.0.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MudraX.Blazor.Keycloak.Web" Version="9.0.0.2" />
                    
Directory.Packages.props
<PackageReference Include="MudraX.Blazor.Keycloak.Web" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MudraX.Blazor.Keycloak.Web --version 9.0.0.2
                    
#r "nuget: MudraX.Blazor.Keycloak.Web, 9.0.0.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=MudraX.Blazor.Keycloak.Web&version=9.0.0.2
                    
Install MudraX.Blazor.Keycloak.Web as a Cake Addin
#tool nuget:?package=MudraX.Blazor.Keycloak.Web&version=9.0.0.2
                    
Install MudraX.Blazor.Keycloak.Web as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
9.0.0.2 144 5/7/2025
9.0.0.1 132 5/6/2025