diff --git a/src/Microsoft.AspNet.Server.WebListener/AuthenticationHandler.cs b/src/Microsoft.AspNet.Server.WebListener/AuthenticationHandler.cs index d6f9ebd9ca..242fc3b707 100644 --- a/src/Microsoft.AspNet.Server.WebListener/AuthenticationHandler.cs +++ b/src/Microsoft.AspNet.Server.WebListener/AuthenticationHandler.cs @@ -137,7 +137,7 @@ namespace Microsoft.AspNet.Server.WebListener return new Dictionary() { { "AuthenticationScheme", authenticationScheme }, - { "Caption", "Windows:" + authenticationScheme }, + { "DisplayName", "Windows:" + authenticationScheme }, }; } diff --git a/test/Microsoft.AspNet.Server.WebListener.FunctionalTests/AuthenticationTests.cs b/test/Microsoft.AspNet.Server.WebListener.FunctionalTests/AuthenticationTests.cs index d8a2fa3e66..b2ab2bfa3f 100644 --- a/test/Microsoft.AspNet.Server.WebListener.FunctionalTests/AuthenticationTests.cs +++ b/test/Microsoft.AspNet.Server.WebListener.FunctionalTests/AuthenticationTests.cs @@ -202,7 +202,7 @@ namespace Microsoft.AspNet.Server.WebListener Assert.Equal(1, resultList.Count()); var result = resultList.First(); Assert.Equal(authType.ToString(), result.AuthenticationScheme); - Assert.Equal("Windows:" + authType.ToString(), result.Caption); + Assert.Equal("Windows:" + authType.ToString(), result.DisplayName); } return Task.FromResult(0);