diff --git a/src/Microsoft.AspNetCore.Server.HttpSys/AuthenticationHandler.cs b/src/Microsoft.AspNetCore.Server.HttpSys/AuthenticationHandler.cs index 81c030e..b47adc1 100644 --- a/src/Microsoft.AspNetCore.Server.HttpSys/AuthenticationHandler.cs +++ b/src/Microsoft.AspNetCore.Server.HttpSys/AuthenticationHandler.cs @@ -117,7 +117,6 @@ namespace Microsoft.AspNetCore.Server.HttpSys return new Dictionary() { { "AuthenticationScheme", authenticationScheme }, - { "DisplayName", "Windows:" + authenticationScheme }, }; } diff --git a/test/Microsoft.AspNetCore.Server.HttpSys.FunctionalTests/AuthenticationTests.cs b/test/Microsoft.AspNetCore.Server.HttpSys.FunctionalTests/AuthenticationTests.cs index a5ee320..358ac34 100644 --- a/test/Microsoft.AspNetCore.Server.HttpSys.FunctionalTests/AuthenticationTests.cs +++ b/test/Microsoft.AspNetCore.Server.HttpSys.FunctionalTests/AuthenticationTests.cs @@ -192,7 +192,7 @@ namespace Microsoft.AspNetCore.Server.HttpSys Assert.Equal(1, resultList.Count()); var result = resultList.First(); Assert.Equal(authType.ToString(), result.AuthenticationScheme); - Assert.Equal("Windows:" + authType.ToString(), result.DisplayName); + Assert.Null(result.DisplayName); } return Task.FromResult(0);