【发布时间】:2018-10-10 11:02:56
【问题描述】:
我使用这篇文章Token Based Authentication using ASP.NET Web API 2, Owin, and Identity 创建了一个基于令牌的身份验证的 WebApi(非常感谢本文的作者)我成功地创建了应用程序,它在我的本地机器上运行。
问题:当我在 IIS 中将其部署为子站点(其父站点使用 Windows 身份验证)时,它不起作用。我错过了什么。请帮忙。
参考资料:
我的 WebApi 配置
<system.web>
<compilation debug="true" targetFramework="4.5.2" />
<httpRuntime targetFramework="4.5.2" />
<httpModules></httpModules>
<customErrors mode="Off"/>
</system.web>
还有我的父级配置
<authorization>
<allow users="*" />
<deny users="?" />
</authorization>
【问题讨论】:
标签: asp.net-web-api