来自外部的ASP.Net会员用户管理

时间:2023-01-26 01:40:54

I actually want to create/list/edit asp.net membership users from a page authenticating with Windows-Authentication, the website uses ASP.Net MVC4. This is the administration website for another website using the forms authentication with asp.net membership on an SQL database. So this should allow company users to administer external users.

我实际上想要从使用Windows身份验证进行身份验证的页面创建/列出/编辑asp.net成员资格用户,该网站使用ASP.Net MVC4。这是另一个使用SQL数据库上的asp.net成员身份验证的网站的管理网站。因此,这应该允许公司用户管理外部用户。

I can't use Membership-API, because the actual context does not support the asp.net membership.

我不能使用Membership-API,因为实际的上下文不支持asp.net成员资格。

Using the stored procedures requires manually hashing the password etc and this is not recommended. Also inserting the users directly into the tables would have this problem.

使用存储过程需要手动散列密码等,不建议这样做。将用户直接插入表中也会出现此问题。

So is there a working example for administering asp.net membership users from a windows forms authenticated website?

那么有一个从Windows窗体认证网站管理asp.net会员用户的工作示例吗?

1 个解决方案

#1


0  

I just managed to solve this problem using a webservice to decouple Windows-Domain authentication from asp.net-Membership:

我只是设法使用Web服务来解决这个问题,以便将Windows域身份验证与asp.net-Membership分离:

  • Windows Domain Website for administration uses Webservice
  • 用于管理的Windows域网站使用Webservice

  • Webservice offers functionality to manage users of asp.net membership
  • Webservice提供管理asp.net成员资格用户的功能

  • Webservice access has to be restricted to local server (so only the Windows Domain website can use it) and allows anonymous access (or with a special account).
  • Webservice访问必须限制在本地服务器上(因此只有Windows Domain网站可以使用它)并允许匿名访问(或使用特殊帐户)。

  • Webservice needs to be configured like an asp.net membership website and to use the same membership database like the "normal users Website"
  • Webservice需要像asp.net会员网站一样配置,并使用相同的会员数据库,如“普通用户网站”

#1


0  

I just managed to solve this problem using a webservice to decouple Windows-Domain authentication from asp.net-Membership:

我只是设法使用Web服务来解决这个问题,以便将Windows域身份验证与asp.net-Membership分离:

  • Windows Domain Website for administration uses Webservice
  • 用于管理的Windows域网站使用Webservice

  • Webservice offers functionality to manage users of asp.net membership
  • Webservice提供管理asp.net成员资格用户的功能

  • Webservice access has to be restricted to local server (so only the Windows Domain website can use it) and allows anonymous access (or with a special account).
  • Webservice访问必须限制在本地服务器上(因此只有Windows Domain网站可以使用它)并允许匿名访问(或使用特殊帐户)。

  • Webservice needs to be configured like an asp.net membership website and to use the same membership database like the "normal users Website"
  • Webservice需要像asp.net会员网站一样配置,并使用相同的会员数据库,如“普通用户网站”