![]() |
VOOZH | about |
dotnet add package MudraX.Blazor.Keycloak.Maui --version 9.0.0.5
NuGet\Install-Package MudraX.Blazor.Keycloak.Maui -Version 9.0.0.5
<PackageReference Include="MudraX.Blazor.Keycloak.Maui" Version="9.0.0.5" />
<PackageVersion Include="MudraX.Blazor.Keycloak.Maui" Version="9.0.0.5" />Directory.Packages.props
<PackageReference Include="MudraX.Blazor.Keycloak.Maui" />Project file
paket add MudraX.Blazor.Keycloak.Maui --version 9.0.0.5
#r "nuget: MudraX.Blazor.Keycloak.Maui, 9.0.0.5"
#:package MudraX.Blazor.Keycloak.Maui@9.0.0.5
#addin nuget:?package=MudraX.Blazor.Keycloak.Maui&version=9.0.0.5Install as a Cake Addin
#tool nuget:?package=MudraX.Blazor.Keycloak.Maui&version=9.0.0.5Install as a Cake Tool
MudraX.Blazor.Keycloak.Maui is a robust library designed to integrate Keycloak authentication seamlessly into Blazor and .NET MAUI applications. Built with .NET 9, this library is optimized for modern cross-platform development, enabling developers to implement secure and scalable authentication solutions with ease.
To install the library, use the following NuGet command:
Install-Package MudraX.Blazor.Keycloak.Maui
builder.Services.AddMudraBlazorServices(supportedCultures: ["en-US", "zh-TW"]);
#if ANDROID
builder.Services.AddMudraKeycloakServices(options =>
{
options.TokenUrl = "http://10.0.2.2:8080/realms/my-realm/protocol/openid-connect/token";
options.ClientId = "<clientid>";
options.ClientSecret = "<client-secret>";
});
#else
builder.Services.AddMudraKeycloakServices(options =>
{
options.TokenUrl = "http://localhost:8080/realms/my-realm/protocol/openid-connect/token";
options.ClientId = "<clientid>";
options.ClientSecret = "<client-secret>";
});
#endif
@using MudraX.Blazor.Keycloak.Maui.Components.Layout
Add AppUserMenu to MainLayout.razor
<ApplicationLayout>
<ApplcationBar>
<AppUserMenu />
</ApplcationBar>
Add the following route to your Routes.razor file:
<Router AppAssembly="@typeof(MauiProgram).Assembly" AdditionalAssemblies="new[] { typeof(AppUserMenu).Assembly }">
Contributions are welcome! To get started:
For any questions or discussions, feel free to open an issue or join our community forums.
This project is licensed under the .
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.