| View previous topic :: View next topic |
| Author |
Message |
Greg Province Guest
|
Posted: Thu Oct 30, 2003 11:26 pm Post subject: Sun JVM Applet prompts for Authentication |
|
|
I have a java applet on our intranet which queries the database for
data via a ASP webpage using openStream() of URL class. This has
worked fine for me with the MSJVM in IE and with the JVM in older
versions of Netscape. Since Microsoft is soon to dump MSJVM from IE,
I must switch to Sun's JVM. The problem is that when using the Sun
JVM it seems that an extra authentication is required when the
connection back to the webserver is made from the applet. I get a
login dialog at this time which I never got before with the older
JVMs. Is there a way to hardcode these login parms in the applet
instead of bothering the user with them? I have tried making the IIS
web anonymous, but it doesn't seem to matter - I still get prompted.
What can I do? The login would be an annoyance for users.
|
|
| Back to top |
|
 |
David Stevenson Guest
|
Posted: Fri Oct 31, 2003 1:04 am Post subject: Re: Sun JVM Applet prompts for Authentication |
|
|
Greg Province wrote:
| Quote: | I have a java applet on our intranet which queries the database for
data via a ASP webpage using openStream() of URL class. This has
worked fine for me with the MSJVM in IE and with the JVM in older
versions of Netscape. Since Microsoft is soon to dump MSJVM from IE,
I must switch to Sun's JVM. The problem is that when using the Sun
JVM it seems that an extra authentication is required when the
connection back to the webserver is made from the applet. I get a
login dialog at this time which I never got before with the older
JVMs. Is there a way to hardcode these login parms in the applet
instead of bothering the user with them? I have tried making the IIS
web anonymous, but it doesn't seem to matter - I still get prompted.
What can I do? The login would be an annoyance for users.
|
Some thoughts:
I have seen a login dialog popup occur when digest authentication is
turned on.
Is digest authentication mode turned on the web server?
I am also wondering if the applet needs to pass back the session id as
a cookie. The web server may see the openStream () request as being
a different session.
David Stevenson
|
|
| Back to top |
|
 |
Greg Province Guest
|
Posted: Fri Oct 31, 2003 5:58 pm Post subject: Re: Sun JVM Applet prompts for Authentication |
|
|
| Quote: | Some thoughts:
I have seen a login dialog popup occur when digest authentication is
turned on.
Is digest authentication mode turned on the web server?
|
The digest authentication is off.
| Quote: | I am also wondering if the applet needs to pass back the session id as
a cookie. The web server may see the openStream () request as being
a different session.
|
It does seem like the applet is having to create a new session.
But I'm unclear what you mean by "needs to pass back the session id as
a cookie"... Don't you mean that the applet could be passed in a
session id from the webpage so that it could re-use that session?
|
|
| Back to top |
|
 |
|