Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?


Failed to load latest commit information.
Latest commit message
Commit time
July 22, 2015 10:34
July 10, 2015 13:21
July 9, 2015 16:37
July 9, 2015 16:37
November 20, 2017 19:29
February 11, 2016 18:46


Please use this project at your own risk. The software is provided as-is.

I have unfortunately ran out of time to continue with this project's continual development and maintenance, and cannot accept pull requests, fix issues, or answer in-depth technical questions.

This project is in need of a maintainer, if you would like to become one please ask, email, or otherwise reach out to Dylan Plecki (djp at plecki dot net).

Keycloak OWIN Authentication Build status

Owin.Security.Keycloak - OWIN Authentication Middleware for C# Applications

From Keycloak's Website:

Keycloak is an integrated SSO and IDM for browser apps and RESTful web services, built on top of OAuth 2.0, OpenID Connect, JSON Web Tokens (JWT) and SAML 2.0 specifications. Keycloak has tight integration with a variety of platforms and has an HTTP security proxy service where we don't have tight integration.

This project is an unofficial Keycloak connector for C#. It is designed as an OWIN authentication middleware component, and can import user data, including roles and authorization information, into the OWIN pipeline for use in ASP.NET, WPF, and any other C# application.


All relevant documentation to Owin.Security.Keycloak and KeycloakIdentityModel can be found on the GitHub Wiki Page.

NuGet Packages

For ASP.NET and OWIN functionality:

  • Owin.Security.Keycloak (link)

For native applications or basic functionality:

  • KeycloakIdentityModel (link)

Required NuGet package(s) for hosting on ASP.NET / IIS:

  • Microsoft.Owin.Host.SystemWeb (link)

Recommended NuGet package(s) for hosting on ASP.NET / IIS:

  • Microsoft.Owin.Security.Cookies (link)

Issues & Requests

Issues, feature requests, and technical help can be found at the project's issue tracker on GitHub.