From fc8832f69fd53c220a12e4d6ef675ec12fe8cb33 Mon Sep 17 00:00:00 2001 From: Chris Ross Date: Tue, 18 Mar 2014 10:23:25 -0700 Subject: [PATCH] Add Claims dependency. --- .../Security/IAuthenticationResult.cs | 6 ------ .../Security/IAuthenticationSignIn.cs | 4 ---- src/Microsoft.AspNet.HttpFeature/project.json | 1 + 3 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/Microsoft.AspNet.HttpFeature/Security/IAuthenticationResult.cs b/src/Microsoft.AspNet.HttpFeature/Security/IAuthenticationResult.cs index a4716b880f..b047bae8bd 100644 --- a/src/Microsoft.AspNet.HttpFeature/Security/IAuthenticationResult.cs +++ b/src/Microsoft.AspNet.HttpFeature/Security/IAuthenticationResult.cs @@ -1,7 +1,5 @@ using System.Collections.Generic; -#if NET45 using System.Security.Claims; -#endif using Microsoft.AspNet.HttpFeature.Security; // ReSharper disable once CheckNamespace @@ -9,11 +7,7 @@ namespace Microsoft.AspNet.Interfaces.Security { public interface IAuthenticationResult { -#if NET45 ClaimsIdentity Identity { get; } -#else - -#endif IDictionary Properties { get; } IAuthenticationDescription Description { get; } } diff --git a/src/Microsoft.AspNet.HttpFeature/Security/IAuthenticationSignIn.cs b/src/Microsoft.AspNet.HttpFeature/Security/IAuthenticationSignIn.cs index a86f94e132..6033b173c5 100644 --- a/src/Microsoft.AspNet.HttpFeature/Security/IAuthenticationSignIn.cs +++ b/src/Microsoft.AspNet.HttpFeature/Security/IAuthenticationSignIn.cs @@ -1,15 +1,11 @@ using System.Collections.Generic; -#if NET45 using System.Security.Claims; -#endif namespace Microsoft.AspNet.HttpFeature.Security { public interface IAuthenticationSignIn { -#if NET45 ClaimsPrincipal User { get; } -#endif IDictionary Properties { get; } } } \ No newline at end of file diff --git a/src/Microsoft.AspNet.HttpFeature/project.json b/src/Microsoft.AspNet.HttpFeature/project.json index 4660c1d1cd..fe3cbc04bc 100644 --- a/src/Microsoft.AspNet.HttpFeature/project.json +++ b/src/Microsoft.AspNet.HttpFeature/project.json @@ -7,6 +7,7 @@ "System.IO": "4.0.0.0", "System.Runtime": "4.0.20.0", "System.Runtime.InteropServices": "4.0.10.0", + "System.Security.Claims": "0.1-alpha-*", "System.Security.Principal": "4.0.0.0", "System.Threading.Tasks": "4.0.0.0" }