Search code examples
c#servicestackwindows-authentication.net-8.0

ServiceStack and Windows Auth


I am using the latest version of ServiceStack (as of the time I am writing, version 8.5) and I need to integrate Windows Authentication into my application. I know that ServiceStack doesn't provide a specific auth provider for this. I could create a custom WindowsAuthProvider, but I’m not entirely convinced, as security is always a delicate matter. Is there another way?


Solution

  • For .NET Framework you can use ServiceStack Auth with the AspNetWindowsAuthProvider.

    For .NET 8+ you would need to Configure Windows Authentication in ASP.NET Core.