diff --git a/Scenarios/Getting-Started-with-CoreWCF/NetCoreServer/Program.cs b/Scenarios/Getting-Started-with-CoreWCF/NetCoreServer/Program.cs index a59f515..f7a2e26 100644 --- a/Scenarios/Getting-Started-with-CoreWCF/NetCoreServer/Program.cs +++ b/Scenarios/Getting-Started-with-CoreWCF/NetCoreServer/Program.cs @@ -2,8 +2,10 @@ using System.Net; using CoreWCF.Configuration; using Microsoft.AspNetCore; +using Microsoft.AspNetCore.Authentication.Negotiate; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; +using Microsoft.Extensions.DependencyInjection; namespace NetCoreServer { @@ -29,6 +31,10 @@ public static IWebHostBuilder CreateWebHostBuilder(string[] args) => } }); }) + .ConfigureServices(options => + { + options.AddAuthentication(NegotiateDefaults.AuthenticationScheme).AddNegotiate(); + }) .UseNetTcp(Startup.NETTCP_PORT) .UseStartup(); }