MVC Simple Membership Web Site Administration Tool

ぐ巨炮叔叔 提交于 2019-12-13 00:56:48

问题


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.

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.

Advice is appreciated.

Thanks!


回答1:


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 is built to work with ASP.NET Membership, and is not compatible with Simple Membership. There are two main options there:

  1. Use the WebSecurity and OAuthWebSecurity API to manage the users and roles.
  2. Create a web admin using the above APIs.
  3. Since SimpleMembership runs on top of your database, you can update your users as you would any other data - via EF or even in direct database edits (in development, of course)

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.



来源:https://stackoverflow.com/questions/15810268/mvc-simple-membership-web-site-administration-tool

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!