Aspire.Hosting.Keycloak
13.0.0-preview.1.25560.3
Prefix Reserved
dotnet add package Aspire.Hosting.Keycloak --version 13.0.0-preview.1.25560.3
NuGet\Install-Package Aspire.Hosting.Keycloak -Version 13.0.0-preview.1.25560.3
<PackageReference Include="Aspire.Hosting.Keycloak" Version="13.0.0-preview.1.25560.3" />
<PackageVersion Include="Aspire.Hosting.Keycloak" Version="13.0.0-preview.1.25560.3" />
<PackageReference Include="Aspire.Hosting.Keycloak" />
paket add Aspire.Hosting.Keycloak --version 13.0.0-preview.1.25560.3
#r "nuget: Aspire.Hosting.Keycloak, 13.0.0-preview.1.25560.3"
#:package Aspire.Hosting.Keycloak@13.0.0-preview.1.25560.3
#addin nuget:?package=Aspire.Hosting.Keycloak&version=13.0.0-preview.1.25560.3&prerelease
#tool nuget:?package=Aspire.Hosting.Keycloak&version=13.0.0-preview.1.25560.3&prerelease
Aspire.Hosting.Keycloak library
Provides extension methods and resource definitions for an Aspire AppHost to configure a Keycloak resource.
Getting started
Install the package
In your AppHost project, install the Aspire Keycloak Hosting library with NuGet:
dotnet add package Aspire.Hosting.Keycloak
Usage example
Then, in the AppHost.cs file of AppHost, add a Keycloak resource and enable service discovery using the following methods:
var keycloak = builder.AddKeycloak("keycloak", 8080);
var myService = builder.AddProject<Projects.MyService>()
.WithReference(keycloak);
Recommendation: For local development use a stable port for the Keycloak resource (8080 in the example above). It can be any port, but it should be stable to avoid issues with browser cookies that will persist OIDC tokens (which include the authority URL, with port) beyond the lifetime of the AppHost.
Feedback & contributing
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. 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. |
-
net8.0
- Aspire.Hosting (>= 13.0.0)
- AspNetCore.HealthChecks.Uris (>= 9.0.0)
- Google.Protobuf (>= 3.33.0)
- Grpc.AspNetCore (>= 2.71.0)
- Grpc.Net.ClientFactory (>= 2.71.0)
- Grpc.Tools (>= 2.72.0)
- Humanizer.Core (>= 2.14.1)
- JsonPatch.Net (>= 3.3.0)
- KubernetesClient (>= 18.0.5)
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 8.0.2)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.2)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 8.0.22)
- Microsoft.Extensions.Hosting (>= 8.0.1)
- Microsoft.Extensions.Hosting.Abstractions (>= 8.0.1)
- Microsoft.Extensions.Http (>= 8.0.1)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.3)
- Microsoft.Extensions.Options (>= 8.0.2)
- Microsoft.Extensions.Primitives (>= 8.0.0)
- Newtonsoft.Json (>= 13.0.4)
- Polly.Core (>= 8.6.4)
- Semver (>= 3.0.0)
- StreamJsonRpc (>= 2.22.23)
- System.IO.Hashing (>= 9.0.10)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Aspire.Hosting.Keycloak:
| Package | Downloads |
|---|---|
|
CommunityToolkit.Aspire.Hosting.Keycloak.Extensions
.NET Aspire hosting extensions for Keycloak (includes PostgreSQL integration). |
GitHub repositories (2)
Showing the top 2 popular GitHub repositories that depend on Aspire.Hosting.Keycloak:
| Repository | Stars |
|---|---|
|
foxminchan/BookWorm
The practical implementation of Aspire using Microservices, AI-Agents
|
|
|
fdonnet/ubik_accounting
Double entry accounting app in Net 9
|
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 13.0.0-preview.1.25560.3 | 2,555 | 11/11/2025 | |
| 9.5.2-preview.1.25522.3 | 5,126 | 10/23/2025 | |
| 9.5.1-preview.1.25502.11 | 9,058 | 10/3/2025 | |
| 9.5.0-preview.1.25474.7 | 7,357 | 9/25/2025 | |
| 9.4.2-preview.1.25428.12 | 7,057 | 9/2/2025 | |
| 9.4.1-preview.1.25408.4 | 13,986 | 8/12/2025 | |
| 9.4.0-preview.1.25378.8 | 6,385 | 7/29/2025 | |
| 9.3.1-preview.1.25305.6 | 25,357 | 6/10/2025 | |
| 9.3.0-preview.1.25265.20 | 21,230 | 5/19/2025 | |
| 9.2.1-preview.1.25222.1 | 8,363 | 4/24/2025 | |
| 9.2.0-preview.1.25209.2 | 10,024 | 4/10/2025 | |
| 9.1.0-preview.1.25121.10 | 14,712 | 2/25/2025 | |
| 9.0.0-preview.5.24551.3 | 45,408 | 11/12/2024 | |
| 9.0.0-preview.4.24511.1 | 1,081 | 10/15/2024 | |
| 8.2.2-preview.1.24521.5 | 2,842 | 10/24/2024 | |
| 8.2.1-preview.1.24473.4 | 1,552 | 9/26/2024 | |
| 8.2.0-preview.1.24428.5 | 2,370 | 8/29/2024 | |
| 8.1.0-preview.1.24373.2 | 3,279 | 7/23/2024 |