Add Claims dependency.

This commit is contained in:
Chris Ross 2014-03-18 10:23:25 -07:00
parent cbd8401582
commit fc8832f69f
3 changed files with 1 additions and 10 deletions

View File

@ -1,7 +1,5 @@
using System.Collections.Generic; using System.Collections.Generic;
#if NET45
using System.Security.Claims; using System.Security.Claims;
#endif
using Microsoft.AspNet.HttpFeature.Security; using Microsoft.AspNet.HttpFeature.Security;
// ReSharper disable once CheckNamespace // ReSharper disable once CheckNamespace
@ -9,11 +7,7 @@ namespace Microsoft.AspNet.Interfaces.Security
{ {
public interface IAuthenticationResult public interface IAuthenticationResult
{ {
#if NET45
ClaimsIdentity Identity { get; } ClaimsIdentity Identity { get; }
#else
#endif
IDictionary<string, object> Properties { get; } IDictionary<string, object> Properties { get; }
IAuthenticationDescription Description { get; } IAuthenticationDescription Description { get; }
} }

View File

@ -1,15 +1,11 @@
using System.Collections.Generic; using System.Collections.Generic;
#if NET45
using System.Security.Claims; using System.Security.Claims;
#endif
namespace Microsoft.AspNet.HttpFeature.Security namespace Microsoft.AspNet.HttpFeature.Security
{ {
public interface IAuthenticationSignIn public interface IAuthenticationSignIn
{ {
#if NET45
ClaimsPrincipal User { get; } ClaimsPrincipal User { get; }
#endif
IDictionary<string, string> Properties { get; } IDictionary<string, string> Properties { get; }
} }
} }

View File

@ -7,6 +7,7 @@
"System.IO": "4.0.0.0", "System.IO": "4.0.0.0",
"System.Runtime": "4.0.20.0", "System.Runtime": "4.0.20.0",
"System.Runtime.InteropServices": "4.0.10.0", "System.Runtime.InteropServices": "4.0.10.0",
"System.Security.Claims": "0.1-alpha-*",
"System.Security.Principal": "4.0.0.0", "System.Security.Principal": "4.0.0.0",
"System.Threading.Tasks": "4.0.0.0" "System.Threading.Tasks": "4.0.0.0"
} }