You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Andrea Tomasini <an...@dsnet.it> on 2000/04/21 09:59:01 UTC
RE: Basic Authentication with IE don't WORK...
> Could you help us by describing exactly the symptoms you see?
OK Man,
the symptoms are really simple, the "WWW-Authenticate" header are not send
back correctly to the client, so IE hangs on waiting response from the
server and Netscape raise-up the authentication login window, reporting that
the Authentication type is "UNKNOWN" and it's coming from a Bad Realm...
Opera Browser report that it can handle request because the Authentication
method is not yet supported...
These are HEADERS I set in my Authentication Servlet according to RFC:
[...]
response.setHeader("WWW-Authenticate", "BASIC REALM=\"" + m_authRealm +
"\"");
response.sendError(response.SC_UNAUTHORIZED);
[...]
And this is the HEADERS I get from the server when connecting to the
servlet, using Perl-libwww :-)
[...]
401 Unauthorized
Date: Fri, 21 Apr 2000 07:53:52 GMT
WWW-Authenticate: Basic "default"
Content-Language: en
Content-Type: text/plain
Client-Date: Fri, 21 Apr 2000 07:51:37 GMT
Client-Peer: ^MY_PEER_OK!^
Servlet-Engine: Tomcat Web Server/3.1 Beta (JSP 1.1; Servlet 2.2; Java
1.2.2; Windows NT 4.0 x86;
java.vendor=Sun Microsystems Inc.)
Set-Cookie: JSESSIONID=To1036mC4148290271476982At;Path=^MY_PATH_OK!^
Set-Cookie2:
JSESSIONID=To1036mC4148290271476982At;Version=1;Discard;Path=^MY_PATH_OK!^
Status: 401
[...]
Notice that even Perl threats headers Authenticate and set Realm to
"default"...
I hope this it's enough :-)
Byez
ANdreaT
> PS: This discussion is more appropriate on the TOMCAT-USER
> mailing list
> because it has been, or undoubtedly will be, encountered by
> other users as
> well.
I think it's a developers task to solve this problem :-)