I would handle it this way: servlet reads information from cookie and redirects to login/proxy with folloging parameters: - username - password - destination (url of your main page, is automatically called after successfull authentication)
The spelling of the parameters you can find in LoginConstants.java. Martin 2006/12/21, Patrick McCabe <[EMAIL PROTECTED]>:
Servlet never even crossed my mind..I've been stuck in portlet mode for so long now. I'm thinking that I will have to make the entry point of our site a servlet that checks for the cookie, and authenticates the user if it is found. Then redirects to our main page. Is this how you would handle this situation ? On 12/21/06, Martin Dulisch <[EMAIL PROTECTED]> wrote: > > Hi Patrick, > > why do you not write a servlet that reads the user info and redirects > to login/proxy. > We are planning something like this. > > Martin > > > 2006/12/21, Patrick McCabe < [EMAIL PROTECTED]>: > > Hi List > > > > We have Jetspeed 2.1-dev up and running. Right now we have a login > portlet > > which simply submits the username/password to login/proxy and everything > is > > working great. Now, I would like to upgrade the login portlet to be > able to > > automatically authenticate a person from some information stored in a > > cookie, like a remember me sort of thing. > > > > My first thought was to store their username, and encoded password which > > could be read by my login portlet and forworded to login/proxy for > > authentication. However, since I can't send a redirect from within the > > doView method this won't work. > > > > I have tried all sorts of things trying to simply authenticate a user > from > > within a portlet, and not having to submit a form to login/proxy. Is > there > > any way to accomplish this? > > > > Am i even looking in the right direction ? > > > > Surely somebody must have done something similar in Jetspeed already. > > > > Any help/comments are very appreciated. > > > > Thanks > > > > Pat > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
