【发布时间】:2021-12-12 11:21:54
【问题描述】:
我想把IIS上的系统移到Azure上,用kudu添加一些空文件夹(不加任何代码),让用户用浏览器点击URL,弹出验证账号的输入框。验证成功后,可以看到如下截图文件或下载文件或读取文件(文本文件或PDF)的文件夹列表。 现在打开Azure网页,可以看到文件列表,但是不能使用windows集成验证。我怎样才能做到这一点? (因为系统会被其他服务调用,所以不方便使用Azure AD认证。原来在IIS上,登录账号是写在web.config中的) enter image description here
web.config:
<configuration>
<system.web>
<customErrors mode="On" defaultRedirect="~/error.html" />
<authentication mode="Windows">
</authentication>
<authorization>
<allow users="Owner" />
<allow users="User" />
<deny users="*" />
</authorization>
</system.web>
<system.webServer>
<directoryBrowse enabled="true" />
</system.webServer>
</configuration>
【问题讨论】:
标签: asp.net azure authentication filesystems windows-authentication