Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Wildfly 8.0.2 Final - JAAS - Database login module, force to execute query each time  RSS feed

 
daniele licitra
Ranch Hand
Posts: 81
Java Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have implemented a Database login module has explained in this post.

The problem is:
for each pair of username-password, the database module is called only for the first time.

Suppose i sign in the application, then log out. I change the username in the database and i try again the login.
I can login successful with the old username.

I think the problem is that the server is caching the credentials and, i it find the pair, then log in, else, call method in Database Login Module.

How can i force JAAS to execute query each time?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!