max*_*dbe 5 iis web-config basic-authentication
在 nginx 中,我可以创建一个身份验证响应,它发送
WWW-Authenticate:Basic realm="私有网络"
导致在不创建 login.aspx 的情况下弹出单个用户/密码的登录名
这是我的配置设置
<security>
<authentication >
<anonymousAuthentication enabled="true" userName="test" password="test" />
<!--<basicAuthentication enabled="true" logonMethod="Batch" />-->
<!--<windowsAuthentication enabled="true" />-->
</authentication>
</security>
<authentication mode="Forms">
<forms>
<credentials passwordFormat="Clear">
<user name="test" password="test" />
</credentials>
</forms>
</authentication>
<location path="." >
<system.web>
<authorization>
<allow roles="admin" />
<deny users="*"/>
</authorization>
</system.web>
</location>
Run Code Online (Sandbox Code Playgroud)
然而,这些设置一直把我带到未写的 login.aspx。
我的目标是为一个用户创建一个简单的 u/p 身份验证,而无需求助于登录页面或更复杂的身份验证。
| 归档时间: |
|
| 查看次数: |
2662 次 |
| 最近记录: |