Keycloak.Net.Core
1.0.20
See the version list below for details.
dotnet add package Keycloak.Net.Core --version 1.0.20
NuGet\Install-Package Keycloak.Net.Core -Version 1.0.20
<PackageReference Include="Keycloak.Net.Core" Version="1.0.20" />
<PackageVersion Include="Keycloak.Net.Core" Version="1.0.20" />
<PackageReference Include="Keycloak.Net.Core" />
paket add Keycloak.Net.Core --version 1.0.20
#r "nuget: Keycloak.Net.Core, 1.0.20"
#:package Keycloak.Net.Core@1.0.20
#addin nuget:?package=Keycloak.Net.Core&version=1.0.20
#tool nuget:?package=Keycloak.Net.Core&version=1.0.20

Keycloak.Net.Core
A Fork of https://github.com/lvermeulen/Keycloak.Net with some additional patches
- allow usage of CancellationTokens
- changed ClientConfig to Dictionary<string, string>
- removed signing
- .net 6 support only
- updated for keycloak version 17+
- added support for changing default
AdminClientIdwhich has defaultadmin-clivalue
To use different AdminClientId, use newly introduced KeyCloakOptions:
new KeycloakClient(
"http://keycloak.url",
"adminUserName",
"adminPassword",
new KeycloakOptions(adminClientId:"admin"
)
);
Older version support for using /auth path
When creating a new KeycloakClient, use newly introduced KeycloakOptions:
new KeycloakClient(
"http://keycloak.url",
"adminUserName",
"adminPassword",
new KeycloakOptions(prefix:"auth"
)
);
C# client for Keycloak 6.x
See documentation at https://www.keycloak.org/docs-api/6.0/rest-api/
Features
- Attack Detection
- Authentication Management
- Client Attribute Certificate
- Client Initial Access
- Client Registration Policy
- Client Role Mappings
- Client Scopes
- Clients
- Component
- Groups
- Identity Providers
- Key
- Protocol Mappers
- Realms Admin
- Role Mapper
- Roles
- Roles (by ID)
- Scope Mappings
- User Storage Provider
- Users
- Root
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
-
net6.0
- Flurl.Http (>= 2.4.2)
- Microsoft.CSharp (>= 4.7.0)
- System.Net.Http (>= 4.3.4)
NuGet packages (9)
Showing the top 5 NuGet packages that depend on Keycloak.Net.Core:
| Package | Downloads |
|---|---|
|
NetEvolve.HealthChecks.Keycloak
Contains HealthChecks for the Keycloak service, based on the nuget package `Keycloak.Net.Core`. |
|
|
MedCard.Client
Package Description |
|
|
Ai4c.IdentityService.Application
Package Description |
|
|
Eliassen.Keycloak
Package Description |
|
|
Codehard.IdentityProvider.Keycloak
A client library for Codehard's Identity Provider with Keycloak as a provider. |
GitHub repositories (2)
Showing the top 2 popular GitHub repositories that depend on Keycloak.Net.Core:
| Repository | Stars |
|---|---|
|
testcontainers/testcontainers-dotnet
A library to support tests with throwaway instances of Docker containers for all compatible .NET Standard versions.
|
|
|
abpframework/eShopOnAbp
Reference microservice solution built with the ABP Framework and .NET, runs on Kubernetes with Helm configuration, includes API Gateways, Angular and ASP.NET Core MVC applications, PostgreSQL and MongoDB databases
|
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.38 | 12,428 | 11/20/2025 |
| 1.0.37 | 12,114 | 10/31/2025 |
| 1.0.36 | 5,886 | 10/1/2025 |
| 1.0.35 | 9,797 | 9/3/2025 |
| 1.0.34 | 124,586 | 4/11/2025 |
| 1.0.33 | 44,379 | 1/31/2025 |
| 1.0.32 | 31,499 | 1/6/2025 |
| 1.0.31 | 35,203 | 12/4/2024 |
| 1.0.30 | 52,244 | 10/4/2024 |
| 1.0.29 | 16,532 | 9/23/2024 |
| 1.0.28 | 25,110 | 8/19/2024 |
| 1.0.27 | 39,561 | 7/30/2024 |
| 1.0.26 | 194,594 | 4/23/2024 |
| 1.0.25 | 9,052 | 3/28/2024 |
| 1.0.23 | 741 | 3/26/2024 |
| 1.0.22 | 150,924 | 8/29/2023 |
| 1.0.21 | 104,256 | 5/17/2023 |
| 1.0.20 | 64,119 | 10/23/2022 |
| 1.0.19 | 4,152 | 3/22/2022 |