由服务支持的 ASP.Net MVC 3 自定义会员资格提供商
我需要创建一个带有密码重置工作流程的登录页面,其中包括将用户电子邮件的链接发送到页面以设置新密码。我正在考虑使用自定义会员资格提供商,但是,我们的系统使用后端身份管理系统,所有创建、验证和更新都要经过该系统。我看到的创建自定义成员资格提供程序的所有示例都使用直接数据库连接。这对我不起作用。所以,我想知道是否建议甚至可能创建一个通过服务后端提供服务的会员提供商?
I need to create a login page with a password reset workflow that includes sending a link to the user's email to the page to set their new password. I was thinking of using a Custom membership provider however, our system uses a back-end identity management system that all creation, validation and updates go through. All the examples I see for creating custom membership providers use a direct db connection. This will not work for me. So, I was wondering if it is advised, or even possible, to create a membership provider that does through a services back-end?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当然,您可以使用服务来访问数据。不过,您可能必须同步执行它们。
您有身份管理系统的源代码和/或库吗?如果是这样,您可以直接在提供商中访问它,从而省去服务层。
Sure, you can use services for your data access. You'll probably have to execute them synchronously, though.
Do you have the source and/or libraries for your identity management system? If so, you could access it directly in your provider, cutting out the service layer.