0
votes

I'm using forms authentication for one page in my asp.net project. The forms authentication works with windows credentials (so it doesn't use a username/password db, it just checks against active directory)

Now other files in that project use windows authentication. I want the user to be able to access these files without having to log in again (I'm developing for IPad, which prompts the user for credentials when using windows authentication). Since the form authentication uses the users windows credentials, these are known to the server.

All I need now, is to authenticate the user via windows authentication programmatically (using the previously given credentials).

1
I think you need Impersonation. There are some serious limitations however.crthompson

1 Answers

0
votes

You can set your network credentials this way:

WebProxy myProxy = new WebProxy();
myProxy.Credentials = new NetworkCredential(Environment.UserName,YOURPASS);