Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 在使用windows Kerberos身份验证时,如何使Context.User.HasClaim()和[Authorize”(“Administrator”和“Allow”)起作用? 给定:身份框架7 Beta 3和实体框架7(vNext) 给定:Windows Kerberos身份验证_C#_Asp.net Identity - Fatal编程技术网

C# 在使用windows Kerberos身份验证时,如何使Context.User.HasClaim()和[Authorize”(“Administrator”和“Allow”)起作用? 给定:身份框架7 Beta 3和实体框架7(vNext) 给定:Windows Kerberos身份验证

C# 在使用windows Kerberos身份验证时,如何使Context.User.HasClaim()和[Authorize”(“Administrator”和“Allow”)起作用? 给定:身份框架7 Beta 3和实体框架7(vNext) 给定:Windows Kerberos身份验证,c#,asp.net-identity,C#,Asp.net Identity,上下文。用户从windows Kerberos身份验证上下文分配了IPrincipal。用户对象不包含分配给使用实体框架存储的匹配Microsoft.AspNet.Identity.Identity.IdentityUser的声明 因此: Context.User.HasClaim()无法确定授权 控制器操作方法上的[Authorize(“Administrator”、“Allow”)]属性,用于确定控制器上的授权无法运行 在使用windows Kerberos身份验证时,如何使Contex

上下文。用户从windows Kerberos身份验证上下文分配了IPrincipal。用户对象不包含分配给使用实体框架存储的匹配Microsoft.AspNet.Identity.Identity.IdentityUser的声明

因此:

  • Context.User.HasClaim()无法确定授权
  • 控制器操作方法上的[Authorize(“Administrator”、“Allow”)]属性,用于确定控制器上的授权无法运行

在使用windows Kerberos身份验证时,如何使Context.User.HasClaim()和[Authorize(“Administrator”,“Allow”)]正常工作?

Identity Framework 7 Beta 3?我闻到打字错误。