由服务支持的 ASP.Net MVC 3 自定义会员资格提供商

发布于 2025-01-04 19:48:33 字数 188 浏览 5 评论 0原文

我需要创建一个带有密码重置工作流程的登录页面,其中包括将用户电子邮件的链接发送到页面以设置新密码。我正在考虑使用自定义会员资格提供商,但是,我们的系统使用后端身份管理系统,所有创建、验证和更新都要经过该系统。我看到的创建自定义成员资格提供程序的所有示例都使用直接数据库连接。这对我不起作用。所以,我想知道是否建议甚至可能创建一个通过服务后端提供服务的会员提供商?

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

回首观望 2025-01-11 19:48:33

当然,您可以使用服务来访问数据。不过,您可能必须同步执行它们。

您有身份管理系统的源代码和/或库吗?如果是这样,您可以直接在提供商中访问它,从而省去服务层。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文