users@glassfish.java.net

More control on Realm / LoginModule login

From: <glassfish_at_javadesktop.org>
Date: Mon, 26 Apr 2010 06:29:47 PDT

I have a custom realm / login module for a web app in Glassfish v3.
However, I haven't found out how to do the following:
* After failing x times, the user is blocked. However, how can I warn him, if the login returns just a boolean, and if false, there's no way to retrieve the reason?
* I need to log the IP address of the user which is being logged in. However, how can I access the HttpServletRequest from within the Realm / Login Module?

Thanks in advance.
[Message sent by forum member 'luisfpg']

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