Keycloak.Net.Core 1.0.25

dotnet add package Keycloak.Net.Core --version 1.0.25
NuGet\Install-Package Keycloak.Net.Core -Version 1.0.25
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="Keycloak.Net.Core" Version="1.0.25" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Keycloak.Net.Core --version 1.0.25
#r "nuget: Keycloak.Net.Core, 1.0.25"
#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.
// Install Keycloak.Net.Core as a Cake Addin
#addin nuget:?package=Keycloak.Net.Core&version=1.0.25

// Install Keycloak.Net.Core as a Cake Tool
#tool nuget:?package=Keycloak.Net.Core&version=1.0.25



license NuGet downloads

A Fork of 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 AdminClientId which has default admin-cli value

To use different AdminClientId, use newly introduced KeyCloakOptions:

new KeycloakClient(
  new KeycloakOptions(adminClientId:"admin"

Older version support for using /auth path

When creating a new KeycloakClient, use newly introduced KeycloakOptions:

new KeycloakClient(
   new KeycloakOptions(prefix:"auth"

C# client for Keycloak 6.x

See documentation at


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

NuGet packages (4)

Showing the top 4 NuGet packages that depend on Keycloak.Net.Core:

Package Downloads

Package Description


Package Description


A client library for Codehard's Identity Provider with Keycloak as a provider.


Package Description

GitHub repositories (2)

Showing the top 2 popular GitHub repositories that depend on Keycloak.Net.Core:

Repository Stars
A library to support tests with throwaway instances of Docker containers for all compatible .NET Standard versions.
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.25 1,099 3/28/2024
1.0.23 225 3/26/2024
1.0.22 82,828 8/29/2023
1.0.21 64,634 5/17/2023
1.0.20 37,230 10/23/2022
1.0.19 2,383 3/22/2022