No description, website, or topics provided.
C# JavaScript HTML PowerShell CSS Batchfile ASP

eID OWIN Middleware

This library provides an OWIN Middleware for authenticating users based on the Belgium eID identity cards. Based on the data that can be read from the client certificate, it will create a ClaimsIdentity for use in your web applications.


Users need to have the eID middleware installed. The latest version can be found at:

You need to minimally use ASP.NET 5.0 and the technical account running your web application needs access to the following root authorities:

Alternatively, you can use the following PowerShell script to automatically install the necessary root authority certificates:

You need to configure IIS to Accept or Require a Client Certificate in the SSL settings of your web application.


Import the following using declaration in the "App_Start\Startup.Auth.cs" configuration file of your web application.

using DeRycke.Eid.Owin;

In the method "ConfigureAuth" add the following code at the bottom:

public void ConfigureAuth(IAppBuilder app)
    // ...

    app.UseEidAuthentication(new EidAuthenticationOptions() 
        SignInAsAuthenticationType = "Cookies"

More Information

For more information, you can read the following articles and documents: