ASP.NET Web API Self-Host with Windows Authentication

前端 未结 9 1222
不知归路
不知归路 2021-01-30 11:31

I am trying to use the ASP.NET Web API Self-Host option with Windows authentication so I can determine the logged on user and ultimately accept or reject the user based on their

9条回答
  •  离开以前
    2021-01-30 12:01

    Have you tried putting the [Authorize] attribute on your controller?

    [Authorize]
    public class HelloController : ApiController
    

提交回复
热议问题