开发者

Can I use a custom Membership provider for use in an asp 3.5 .net windows authentication application? [duplicate]

开发者 https://www.devze.com 2022-12-26 15:50 出处:网络
This question alre开发者_如何学运维ady has answers here: Mixing Forms authentication with Windows authentication
This question alre开发者_如何学运维ady has answers here: Mixing Forms authentication with Windows authentication (7 answers) Closed 2 years ago.

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!


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号