[英]Web api windows authorization denied
I want windows authentication in my web api, but I always get the following message: "Authorization has been denied for this request." 我想在我的Web api中进行Windows身份验证,但是我总是收到以下消息:“该请求的授权已被拒绝。” Am I missing something? 我想念什么吗?
IIS settings: IIS设置:
Web config: 网页配置:
Controller: 控制器:
[HttpGet]
[Route("api/testauthentication")]
[Authorize]
public IHttpActionResult TestAutentication()
{
return Ok(true);
}
Solution over here: 解决方案在这里:
IIS Express gives Access Denied error when debugging ASP.NET MVC IIS Express在调试ASP.NET MVC时显示Access Denied错误
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.