diff --git a/samples/MusicStore.Standalone/Program.cs b/samples/MusicStore.Standalone/Program.cs index 3a4c4c6667..4f28682a37 100644 --- a/samples/MusicStore.Standalone/Program.cs +++ b/samples/MusicStore.Standalone/Program.cs @@ -31,8 +31,8 @@ namespace MusicStore.Standalone // modify the applicationHost.config to enable NTLM. builder.UseWebListener(options => { - options.Listener.AuthenticationManager.AuthenticationSchemes = AuthenticationSchemes.NTLM; - options.Listener.AuthenticationManager.AllowAnonymous = false; + options.ListenerSettings.Authentication.Schemes = AuthenticationSchemes.NTLM; + options.ListenerSettings.Authentication.AllowAnonymous = false; }); } else diff --git a/samples/MusicStore/Program.cs b/samples/MusicStore/Program.cs index bee570c0e7..7a92f79209 100644 --- a/samples/MusicStore/Program.cs +++ b/samples/MusicStore/Program.cs @@ -31,8 +31,8 @@ namespace MusicStore // modify the applicationHost.config to enable NTLM. builder.UseWebListener(options => { - options.Listener.AuthenticationManager.AuthenticationSchemes = AuthenticationSchemes.NTLM; - options.Listener.AuthenticationManager.AllowAnonymous = false; + options.ListenerSettings.Authentication.Schemes = AuthenticationSchemes.NTLM; + options.ListenerSettings.Authentication.AllowAnonymous = false; }); } else