users@glassfish.java.net

Programatic logins

From: <glassfish_at_javadesktop.org>
Date: Mon, 03 Mar 2008 15:54:45 PST

I'd like some more control, beyond the FORM login method. Is it possible to log a user in programatically?

My goal is to submit the login page to my own code, which authenticates the user. (can be via the realm but if I can create my own user principle and add it to the session, that is OK too) This way I can easily add things like a "remember me" login token in a separate cookie, which a filter would pick up and, again, log the user in programatically.

It should also make it possible not to have any constraints defined in web.xml and keep all authentication at the application level, which makes much more sense in my case.

Any pointer would be appreciated.
[Message sent by forum member 'basscheffers' (basscheffers)]

http://forums.java.net/jive/thread.jspa?messageID=262082