我可以在 asp 3.5 .net windows 身份验证应用程序中使用自定义会员资格提供程序吗?

发布于 2024-08-28 20:07:39 字数 165 浏览 3 评论 0原文

在 Intranet asp.net 应用程序中,我需要使用 Windows 身份验证,但是,我必须过滤用户对应用程序的访问。我还必须使用已定义的数据库架构以及用户信息和配置文件,因此我必须处理 ValidateUser。如何将自定义成员资格提供程序与 Windows 身份验证结合使用?

提前致谢!

In an Intranet asp.net application, I need to use Windows authentication, however, I must filter user access to the application. I also have to use an already defined database schema with the users info and profile, so I must handle the ValidateUser. How can I use a custom membership provider with windows authentication?

Thanks in advance!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

影子的影子 2024-09-04 20:07:39

要使用 Windows 身份验证,请参阅 WindowsPrincipalWindowsIdentity
有关角色的详细信息,请参阅此处基于安全。

要使用数据库中的用户构建您自己的自定义身份验证,请参阅 GenericPrincipal通用身份。请参阅此处了解有关自定义身份验证。

To use the Windows authentication see WindowsPrincipal and WindowsIdentity.
See here for details about role based security.

To build your own custom authentication using users from a database see GenericPrincipal and GenericIdentity. See here for some details regarding custom authentication.

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