Can I use a custom Membership provider for use in an asp 3.5 .net windows authentication application? [duplicate]
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.
精彩评论