MVC简单成员资格网站管理工具 [英] MVC Simple Membership Web Site Administration Tool

查看:70
本文介绍了MVC简单成员资格网站管理工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一定在某个地方(或者在全班学习过)错过了这一点……使用新的简单安全版本时,似乎缺少用于管理用户和角色的标准ASP安全工具.也就是说,原始版本已经存在并且可以正常工作,只是指向传统的ASP安全性...而不是指向新的简单"系统.

I must have missed this somewhere (or slept through the class)... the standard ASP security tool for managing users and roles seems to be absent when using the new simple security version. That is, the original is there and working, just points to traditional ASP security... NOT to the new "simple" system.

在我的项目中,我可以登录,可以查看webpages_表,但是在我的项目中找不到访问它们的方法...我很乐意管理角色并获取USERID或ROLEID,以便我可以绑定用户使用我项目中的其他功能.

In my project I can log in, I can look at the webpages_ tables but can find no method of accessing them in my project... I would be happy to manage roles and get the USERID and maybe ROLEID so I could tie the user to other functions in my project.

我浏览了数百篇文章和文章...通常我发现我缺少一些次要的配置条目或其他内容,但是这次我有点卡住了.

I've looked through hundreds of posts and articles... normally I find I am missing some minor config entry or something but this time I am a little more stuck.

感谢您的咨询.

谢谢!

推荐答案

SimpleMembership不适用于网站管理工具(WSAT).有一个很好的

SimpleMembership does not work with the Web Site Administration Tool (WSAT). There is a good overview of SimpleMembership in this blog. Here is a quote from it.

WSAT是为与ASP.NET成员资格一起使用而构建的,并且与简单成员资格不兼容.那里有两个主要选项:

WSAT is built to work with ASP.NET Membership, and is not compatible with Simple Membership. There are two main options there:

  1. 使用WebSecurity和OAuthWebSecurity API来管理用户和角色.
  2. 使用上述API创建网络管理员.
  3. 自简单会员制以来在数据库之上运行,您可以像更新用户一样其他任何数据-通过EF或直接在数据库中进行编辑(在开发,当然)

我还要补充一点,您可以在应用程序启动时播种某些信息,例如可用的角色,如

I would also add that you can seed some of this information at application start-up, such as what roles are available, as shown in this article.

这篇关于MVC简单成员资格网站管理工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆