Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Force reauthentication with basic auth on IIS?

Reply
Thread Tools

Force reauthentication with basic auth on IIS?

 
 
JGH
Guest
Posts: n/a
 
      02-07-2005
I am trying to write a web page that features a "logoff" button on a site
that uses basic authentication on an IIS server.

In php, there is a way to send a header to tell the browser it needs to
authenticate. Can I also do that in jsp/java?

 
Reply With Quote
 
 
 
 
toxa26@hotmail.com
Guest
Posts: n/a
 
      02-09-2005
The way basic authentication work, your password is sent to the server.
Since http is stateless, with basic authentication (as opposed to
digest authentication), user name and password are sent every time you
make a request. The reason you dont get asked to type in password
every two seconds is because the browser stores your credentials for
you. If you want to get it to prompt for username/password again,
browser has to be told that authentication failed with whatever
credentials it has stored in the security realm. The way to do this is
to send a 401 Authentication Required response. Basically, if you can
figure out on the server side when you need the user to reauthenticate,
just create a 401 response and send it back instead of whatever you'd
normally send.

Hope this helps,
Anton

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Nike air force one, air force 1, air force one low cut, air force one abdul_razak@indiatimes.com Digital Photography 2 12-31-2008 04:29 PM
Nike Air Force Ones,Air Force One Air Force One-1,25th anniversary lky52112@gmail.com Digital Photography 0 01-15-2008 04:46 PM
Nike Air Force Ones,Air Force One Air Force One-1,25th anniversary lky52112@gmail.com Digital Photography 0 01-15-2008 04:34 PM
Forcing Reauthentication for a Webform with NTLM auth..ion Andrew_Revinsky ASP .Net Security 3 07-14-2004 09:22 AM
How to force reauthentication of a Web service client (Basic auth) Alek Davis ASP .Net Security 0 10-24-2003 06:19 PM



Advertisments