Passing credentials to webpage?

  • Thread starter Thread starter Ole Hanson
  • Start date Start date
O

Ole Hanson

Hi

I am trying to pass a credentials object to a webpage programmatically.
I have a winApp (C#) that I want to be able to open a webpage (by starting
IE), but the credentials required by IIS serving this webpage should be sent
along automatically. This to prevent the user from being forced to login to
the site.

It should be something like LOGONUSER from the User32.dll native API, but
just to a webpage...


Any good and creative ideas as how to do that..???


/Ole
 
No - that would expose the username/password to the user.
I want it "hidden" in such a way that access to this help-webpage is
protected by credentials, but these credentials are delivered by the WinApp.

To the user - this is transparent; he will just see an IE opening a webpage.

So how do I pass along the credentials required by the site? And opening IE
at the same time??

/Thanks
 
Hi,

Can you use windows auth? If so all you have to do is select windows auth
in the web app and it will run as the logged user.
If not you will have to pass the auth token somehow to the web app, maybe
using https and POST the login/password the user used to enter your app.

Cheers,
 
Back
Top