From bf7a8c2439e64eba084a2d47a78719a2433f0400 Mon Sep 17 00:00:00 2001 From: Praburaj Date: Tue, 2 Sep 2014 11:30:10 -0700 Subject: [PATCH] Fixing the build break on the new startup --- src/MusicStore/StartupNtlmAuthentication.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/MusicStore/StartupNtlmAuthentication.cs b/src/MusicStore/StartupNtlmAuthentication.cs index ed399b4773..54bab90eff 100644 --- a/src/MusicStore/StartupNtlmAuthentication.cs +++ b/src/MusicStore/StartupNtlmAuthentication.cs @@ -45,11 +45,12 @@ namespace MusicStore //Who will get admin access? For demo sake I'm listing the currently logged on user as the application administrator. But this can be changed to suit the needs. var identity = (ClaimsIdentity)context.User.Identity; +#if NET451 if (identity.GetUserName() == Environment.UserDomainName + "\\" + Environment.UserName) { identity.AddClaim(new Claim("ManageStore", "Allowed")); } - +#endif await next.Invoke(); });