Shane has now created events for login attempts so you can count them by
observing that event.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4102989#4102989
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4102989
Hi!
I was giving this whole authentication and undetermined number of calls to
authenticator.authenticate() some thoughts and my workaround is that I'm using
my own LoginHandler.
This one is called from the LoginPage and acts as a regular JSF Bean, hence can
determine the next rendered page
This lack of a guarantee is definitely troubling. My authenticate method is
fairly exotic I suppose. It actually sends a web service message to an
external web service that wraps authentication functionality. Essentially, if
the web service returns true, the user is authenticated.
However,
I just created a new issue in JIRA which should address this:
http://jira.jboss.org/jira/browse/JBSEAM-2200
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4101139#4101139
Reply to the post :
it seems problem is abou this method can you show the code
dbAccess.authenticate(...)
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4098161#4098161
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4098161
Hi!
Thank you for your response!
As I mentioned only textual to spare the reader some extra code quotations, the
dbAccess.athenticate(...) methode is executing a native SQL query through the
injected EntityManager (@PersistenceContext private EntityManager em;):
| ..snip - just
There is no garuntee on how many times the authenticate method will be called.
Are you sure that no persistence exceptions have been thrown causing the
transaction to be in an invalid state?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4098257#4098257
Reply
Hi!
Thank you for your response! I really appreciate it.
[EMAIL PROTECTED] wrote : There is no garuntee on how many times the
authenticate method will be called.
| ..snip..
|
That's bad :(
I'm facing the situation that the database is counting the login attempts and
blocks the account,
Hi,
I'm also facing the same problem, when trying to count how many times the user
tries to log-in.
Thanks
Vincent
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4098285#4098285
Reply to the post :