asp.net-mvc - 带有 Dotnetopenauth 的自定义配置文件提供程序新的 MVC 4 模板

标签 asp.net-mvc asp.net-mvc-4 dotnetopenauth webmatrix-2

您现在如何使用启用了 DotNetOpenAuth 的新 MVC 模板配置成员资格、配置文件和角色管理器?我没有看到 web.config 中的配置,那么您现在如何实现自定义配置文件提供程序?

最佳答案

使用新的 MVC4 模板,这是非常相关的。所有身份验证都由 OAuth 和 Webmatrix.Security 处理,而不是使用指定的 ProfileProvider:Profilebase。开箱即用,看起来不支持扩展 Profilebase。相反,您似乎必须创建自己的表来保存任何自定义配置文件属性。看看这个:http://www.asp.net/web-pages/tutorials/security/16-adding-security-and-membership .

关于asp.net-mvc - 带有 Dotnetopenauth 的自定义配置文件提供程序新的 MVC 4 模板,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12078543/

相关文章:

javascript - 如何删除json中不需要的编码符号

asp.net-mvc-4 - ASP.NET MVC DotNetOpenAuth 授权服务器操作方法

asp.net-mvc - 系统架构 : How to Use the same Banner ( like google banner ) in multiple different websites hosted in different domains or subdomains )

c# - 如何编写最小起订量测试来设置返回计数值的方法

html - 使用 HTML 5 Player 和 Asp.net MVC4 在 Azure 上流式传输视频

jquery - 与 viewmodel MVC 5 一起传递额外参数

c# - DotNetOpenAuth 4 不读取配置值

dotnetopenauth - 在集群上运行 OpenId 提供程序时消息签名无效

c# - 如何从 View 页面中的/controller/action/id 获取 id?

javascript - ajax 以对象作为参数调用 Controller 操作