Hi Jurgen- It is possible to subclass FormAuthenticator so that it "short-circuts" the typical servlet login process. What you need to do is define a standard login url in your applications, I chose /security and parameterize the url with information like j_username, j_password, j_redirect_url. This information is then used to authenticate with the realm and forward on to the desired resource. It's pretty straight forward and I think you can find a good example of it if you cull through the archives for this mailing list.
HTH, jk > -----Original Message----- > 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 > 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 above mentioned form should simply > authenticate the user with the container. > > As simple as that seems, I cannot find any way to do > this via the servlet API. > > Two posts by Craig R. McClanahan > > (http://archives.apache.org/eyebrowse/ReadMsg?listName=tomcat-user @jakarta.apache.org&msgId=297658 > and > http://archives.apache.org/eyebrowse/ReadMsg?listName=tomcat-user@; jakarta.apache.org&msgId=297211) suggest, that this is in fact not possible. If that is indeed the case, this is a big deficiency of the servlet specification. Or is there another solution? Thank you, Juergen __________________________________________________ Do you Yahoo!? Yahoo! Web Hosting - Let the expert host your site http://webhosting.yahoo.com -- To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org> -- To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>
