加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

asp.net-mvc-3 – 在Asp.Net MVC中,我对身份验证模式有哪些其他

发布时间:2020-12-16 03:47:45 所属栏目:asp.Net 来源:网络整理
导读:在Web.config文件中,这条信息就在那里 authentication mode="Forms" forms loginUrl="~/Account/LogOn" timeout="2880" //authentication 我可以设置其他模式,我可以有多种模式吗? 一些用户可以使用username / pass登录,其他用户使用x509 clientCert登录.
在Web.config文件中,这条信息就在那里

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

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

一些用户可以使用username / pass登录,其他用户使用x509 clientCert登录.

哪里有关于此的信息?

解决方法

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

<authentication mode="Federated"></authentication>
<authentication mode="Forms"></authentication>
<authentication mode="None"></authentication>
<authentication mode="Passport"></authentication>
<authentication mode="Windows"></authentication>

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读