Windows Authentication During Hosting on Linux Using ASPNet Kernel

I currently have a standalone Owin application that runs on Windows as follows:

public class Program
{
    private static void Main(string[] args)
    {
        using (WebApp.Start<Startup>("http://localhost:9000"))
        {
            Console.WriteLine("Press Enter to quit.");
            Console.ReadKey();
        }
    }
}

public class Startup
{
    public void Configuration(IAppBuilder app)
    {
        var listener = (HttpListener) app.Properties["System.Net.HttpListener"];
        listener.AuthenticationSchemes = AuthenticationSchemes.IntegratedWindowsAuthentication;

        app.UseNancy();
    }

When the request arrives, the user is verified using his Windows domain credentials.

For ASPNetCore, I was wondering if there is a similar setting that can be used, but the application runs on Linux using the Kestrel web server.

, , Windows 2016 OpenIdConnect, , IdentityServer, Windows, Linux, , , , " " , , .

/ .

+4
1

Windows auth Kestrel , , Windows auth Linux.

Windows - . IdentityServer . OpenIdConnect, , .

+5

All Articles