Re: Programmatic login

2002-11-29 Thread Rodrigo Ruiz
02 8:53 AM Subject: Re: Programmatic login > The following is a bare-bones implemetation. Posted under the standard > Apache Licence. > > import java.io.*; > import java.security.Principal; > import javax.servlet.*; > import javax.servlet.http.*; > import org.apache.catalin

Re: Programmatic login

2002-11-19 Thread Martin Jacobson
Juergen Weber wrote: Hello, we have a portal. Now the marketing people want that on the portal page be a form with user and password field. After submitting the user should be logged in. First this looked like a very easy to do feature. We use container managed security to protect some pages.

Re: Programmatic login

2002-11-18 Thread Christoph Kulla
Hi Juergen, another approach is to put your welcome file under a security constraint. Your app will then start with the login page. Regards Christoph Juergen Weber schrieb: Hi, thanks to all who answered to my question. The valve solution looks good, but as we develop with tomcat and run on

Programmatic login

2002-11-18 Thread Juergen Weber
Hi, thanks to all who answered to my question. The valve solution looks good, but as we develop with tomcat and run on weblogic we cannot use nonportable solutions. So, if marketing insists on their idea we have to dump container managed security. Probably we will use a struts based security. T

Re: Programmatic login

2002-11-16 Thread Bill Barker
The following is a bare-bones implemetation. Posted under the standard Apache Licence. import java.io.*; import java.security.Principal; import javax.servlet.*; import javax.servlet.http.*; import org.apache.catalina.*; public class MyValve implements Valve { public MyValve() {} public

Re: Programmatic login

2002-11-16 Thread Zsolt Koppany
Hi, it sounds very interesting. Could you provide some implementation details (source code)? Zsolt On Saturday 16 November 2002 08:26, Bill Barker wrote: > setUserPrincipal -- To unsubscribe, e-mail: For additional commands, e-mail:

Re: Programmatic login

2002-11-15 Thread Bill Barker
I've had similar demands :). Since under this case, the validating servlet must be outside of any security-constraints, if the user is successfully validated it stores the Principal in as a well-known attribute in the Session. You then write a simple (Context-level) Valve that queries the session

RE: Programmatic login

2002-11-15 Thread Ralph Einfeldt
e Internet Solution Center GmbH Hamburg, Germany Hosting, Content Management, Java Consulting http://www.uptime-isc.de > -Original Message- > From: Juergen Weber [mailto:weberjn@;yahoo.com] > Sent: Friday, November 15, 2002 2:42 PM > To: [EMAIL PROTECTED] > Subject: Programmati

RE: Programmatic login

2002-11-15 Thread Jim Krygowski
; From: Juergen Weber [mailto:weberjn@;yahoo.com] > Sent: Friday, November 15, 2002 8:42 AM > To: [EMAIL PROTECTED] > Subject: Programmatic login > > > Hello, > > we have a portal. Now the marketing people want that > on the portal page be a form with user and password > f

Programmatic login

2002-11-15 Thread Juergen Weber
Hello, we have a portal. Now the marketing people want that on the portal page be a form with user and password field. After submitting the user should be logged in. First this looked like a very easy to do feature. We use container managed security to protect some pages. So submitting the abov

Re: Programmatic login with Tomcat 4.0.1

2002-01-04 Thread Pae Choi
IL PROTECTED]> > > Reply-To: Tomcat Users List <[EMAIL PROTECTED]> > > To: [EMAIL PROTECTED] > > Subject: Programmatic login with Tomcat 4.0.1 > > > > Hello people, > > > > I need to programmatically login my session into Tomcat 4.0.1 servlet

Re: Programmatic login with Tomcat 4.0.1

2002-01-04 Thread Craig R. McClanahan
On Fri, 4 Jan 2002, Sergei Batiuk wrote: > Date: Fri, 4 Jan 2002 14:10:03 +0200 > From: Sergei Batiuk <[EMAIL PROTECTED]> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: Programmatic login with Tomcat 4.0.1 > > Hello peopl

RE: Programmatic login with Tomcat 4.0.1

2002-01-04 Thread Dennis SELLINGER
--- >> From: Sergei Batiuk [mailto:[EMAIL PROTECTED]] >> Sent: Friday, January 04, 2002 14:48 >> To: Tomcat Users List >> Subject: RE: Programmatic login with Tomcat 4.0.1 >> >> >> Well, but what about programmatic login, i. e. something like >> &g

Re: Programmatic login with Tomcat 4.0.1

2002-01-04 Thread Tom Drake
ginal Message - From: "Sergei Batiuk" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Friday, January 04, 2002 5:48 AM Subject: RE: Programmatic login with Tomcat 4.0.1 | Well, but what about programmatic login, i. e. something like | |

RE: Programmatic login with Tomcat 4.0.1

2002-01-04 Thread Sergei Batiuk
Well, but what about programmatic login, i. e. something like Context ctx = new InitialContext(); UserManager um = ( UserManager )ctx.lookup( "java:comp/UserManager" ); um.login( login, password ); Does Tomcat have an API similar to this? The thing is I have a login form on my

RE: Programmatic login with Tomcat 4.0.1

2002-01-04 Thread Ing. Gabriel Gajdos
If you use BASIC authentication, user/password are contained in the "Authorization" HTTP 1.1 Header (in Base64 encoded form). Never tried, but should work when supplying correct data into your HTTP request (including headers). | How do I programmatically login into TC 4.0.1? | | Sincirely, | S

Programmatic login with Tomcat 4.0.1

2002-01-04 Thread Sergei Batiuk
Hello people, I need to programmatically login my session into Tomcat 4.0.1 servlet container. However, I could not find the API in JavaDocs that accomplishes this goal. How do I programmatically login into TC 4.0.1? Sincirely, Sergei Batiuk. -- To unsubscribe: Fo