Basic Authentication

W

wcmcalister

Hello all,

I have a c# web application that is supposed to redirect the user to another
website that is basically a black box to me. All I know is that it uses
basic authentication and that when you go to the default page, an
authentication window pops up for you to enter the login and password. In
this case, I know the username and password for the application and little
else.

Our original solution was to simply redirect to the website using this format:
Response.Redirect("http://username:[email protected]");

This worked fine for awhile, but now IE is no longer allowing this because
it is really insecure (really!).

I have found a few places that indicate that I can add headers to the
response with Base64 encoded loginID and passwords. This doesn't seem to be
working at all for me. It's like I'm not passing anything at all.

Does anyone out there have any ideas?

Thanks,
Bill

PS, I know that basic authentication is really insecure. Unfortunately,
this isn't my application and I can't rewrite it.
 
P

parez

Hello all,

I have a c# web application that is supposed to redirect the user to another
website that is basically a black box to me. All I know is that it uses
basic authentication and that when you go to the default page, an
authentication window pops up for you to enter the login and password. In
this case, I know the username and password for the application and little
else.

Our original solution was to simply redirect to the website using this format:
Response.Redirect("http://username:[email protected]");

You could a try a server.transer.
This worked fine for awhile, but now IE is no longer allowing this because
it is really insecure (really!).

I have found a few places that indicate that I can add headers to the
response with Base64 encoded loginID and passwords. This doesn't seem to be
working at all for me. It's like I'm not passing anything at all.

I dont think the headers idea would work because your client would
have to initial the request.
 
M

Mudassar Hassan

Cookies can solve you problem, excryspt username and password and place them
in in cookies and pass some reference to the client, the client then using
this reference will access the cookie and then decrypt the login credential
for verification.

Regards,
Mudassar Hassan
http://mudassarhassan.spaces.live.com/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top