From d103bdb1ba80574c99502d1fb4709ae669bed837 Mon Sep 17 00:00:00 2001 From: Chris R Date: Wed, 1 Mar 2017 16:00:18 -0800 Subject: [PATCH] #287 Do not include an auth display name --- .../AuthenticationHandler.cs | 1 - .../AuthenticationTests.cs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Microsoft.AspNetCore.Server.HttpSys/AuthenticationHandler.cs b/src/Microsoft.AspNetCore.Server.HttpSys/AuthenticationHandler.cs index 81c030e30e..b47adc17d0 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 a5ee320541..358ac346db 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);