Add Claims dependency.
This commit is contained in:
parent
cbd8401582
commit
fc8832f69f
|
|
@ -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; }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -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"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue