6

在 Web.config 文件中,有这条信息

<authentication mode="Forms">
  <forms loginUrl="~/Account/LogOn" timeout="2880" />
</authentication>

我可以设置什么其他模式,我可以有多种模式吗?

一些用户可以使用用户名/密码登录,其他用户可以使用 x509 clientCert。

哪里有这方面的信息?

4

1 回答 1

3

我们在 mvc 中可以有五种身份验证模式...

<authentication mode="Federated"></authentication>
<authentication mode="Forms"></authentication>
<authentication mode="None"></authentication>
<authentication mode="Passport"></authentication>
<authentication mode="Windows"></authentication>
于 2017-05-19T09:26:53.443 回答