views:

55

answers:

2

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!

A: 

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.

Ando
+1  A: 

Ok I've seen the answer here http://stackoverflow.com/questions/2250921/mixing-forms-authentication-with-windows-authentication, I will go for the two apps on the same domain and share session with the windows auth info.

Thanks

Pedro