You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Philippe Mathieu <ph...@lifl.fr> on 2005/01/26 00:08:18 UTC

How to identify automatically in spite of a Realm

I develop a war with Tomcat 5.0.28 and in this application some users 
are already known by the system
and must be authentified (via a Realm and LOGIN form) to acces to 
private JSP, and
new users must give information via a public JSP to be known (like login 
and password choosen but also
other informations) and  then redirected to the private zone.

My pb is that I am an not able to automatically log a new user after he 
has given his information.
In spite of he has given his login/password on the public JSP, the user 
will be asked once again for
his login/password by the Authenticated Form from the Realm when he will 
access to the private zone.

thus he will give his login/password twice :-(

How to avoid That ?

-- 
Phil


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: How to identify automatically in spite of a Realm

Posted by Larry Meadors <la...@gmail.com>.
This may work:

http://www.sys-con.com/story/?storyid=37660&DE=1


On Wed, 26 Jan 2005 00:08:18 +0100, Philippe Mathieu
<ph...@lifl.fr> wrote:
> I develop a war with Tomcat 5.0.28 and in this application some users
> are already known by the system
> and must be authentified (via a Realm and LOGIN form) to acces to
> private JSP, and
> new users must give information via a public JSP to be known (like login
> and password choosen but also
> other informations) and  then redirected to the private zone.
> 
> My pb is that I am an not able to automatically log a new user after he
> has given his information.
> In spite of he has given his login/password on the public JSP, the user
> will be asked once again for
> his login/password by the Authenticated Form from the Realm when he will
> access to the private zone.
> 
> thus he will give his login/password twice :-(
> 
> How to avoid That ?
> 
> --
> Phil
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: How to identify automatically in spite of a Realm

Posted by Parsons Technical Services <pa...@earthlink.net>.
Try this. In your servlet that you submit your signup form to, for the user 
data, return to the user as a response a login form with the username and 
password values set. In the body tag place

onload="document.lform.submit();"

where lform is the name of the form.

This should immediatly submit the form and log in the user. You may wish to 
include instructions for the user to press submit in the event the browser 
does not fire the onload command.

You will also want to set the URI to where they want to go.

I have not done this. But it should work in theory.

Doug


----- Original Message ----- 
From: "Philippe Mathieu" <ph...@lifl.fr>
To: <to...@jakarta.apache.org>
Sent: Tuesday, January 25, 2005 6:08 PM
Subject: How to identify automatically in spite of a Realm


>I develop a war with Tomcat 5.0.28 and in this application some users are 
>already known by the system
> and must be authentified (via a Realm and LOGIN form) to acces to private 
> JSP, and
> new users must give information via a public JSP to be known (like login 
> and password choosen but also
> other informations) and  then redirected to the private zone.
>
> My pb is that I am an not able to automatically log a new user after he 
> has given his information.
> In spite of he has given his login/password on the public JSP, the user 
> will be asked once again for
> his login/password by the Authenticated Form from the Realm when he will 
> access to the private zone.
>
> thus he will give his login/password twice :-(
>
> How to avoid That ?
>
> -- 
> Phil
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org