1

I want windows authentication in my web api, but I always get the following message: "Authorization has been denied for this request." Am I missing something?

IIS settings:

enter image description here

Web config:

enter image description here

Controller:

[HttpGet]
[Route("api/testauthentication")]
[Authorize]
public IHttpActionResult TestAutentication()
{
    return Ok(true);
}
Dev Db
  • 740
  • 4
  • 10
  • 30

1 Answers1

1

Solution over here:

IIS Express gives Access Denied error when debugging ASP.NET MVC

enter image description here

Dev Db
  • 740
  • 4
  • 10
  • 30