wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes Problem with authentication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Problem with authentication" Watch "Problem with authentication" New topic
Author

Problem with authentication

Alex Turbado
Greenhorn

Joined: Dec 24, 2012
Posts: 14
Hi all!

I'm developing an application client that connects to EJBs in a remote Glassfish server. When the application invokes a remote, protected method of an EJB, my custom CallbackHandler appears to collect the user's credentials and send them back to the server.

The problem is that if the user introduces wrong credentials, next calls to a protected method don't invoke the CallbackHandler again, and a security exception is thrown.

Any idea for getting the CallbackHandler again??
 
 
subject: Problem with authentication
 
Similar Threads
login twice
CallbackHandler doesn't appear
Jboss login module issue, HTTP Status 403
Is CallBack Handler called by the same Thread that handles request?
CallbackHandler from a servlet request always uses same Thread as the one handling the request?