AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Sun JVM Applet prompts for Authentication

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Security and Java
View previous topic :: View next topic  
Author Message
Greg Province
Guest





PostPosted: Thu Oct 30, 2003 11:26 pm    Post subject: Sun JVM Applet prompts for Authentication Reply with 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.
Back to top
David Stevenson
Guest





PostPosted: Fri Oct 31, 2003 1:04 am    Post subject: Re: Sun JVM Applet prompts for Authentication Reply with quote



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





PostPosted: Fri Oct 31, 2003 5:58 pm    Post subject: Re: Sun JVM Applet prompts for Authentication Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Security and Java All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.