Commit 3e474a9c authored by Alessandro Portosa's avatar Alessandro Portosa
Browse files

FIX: add logs

parent 1e20b2f3
......@@ -67,6 +67,7 @@ public class ServerPWCallback implements CallbackHandler {
String password = pc.getPassword();
// Now pass them to your authentication mechanism
SpagoBIUserProfile profile = authenticate(userId, password); // throws WSSecurityException.FAILED_AUTHENTICATION on failure
logger.debug("New userId is " + profile.getUniqueIdentifier());
userId = profile.getUniqueIdentifier();
} else {
logger.error("WSPasswordCallback usage [" + pc.getUsage() + "] not treated.");
......@@ -74,6 +75,7 @@ public class ServerPWCallback implements CallbackHandler {
}
// Put userId into MessageContext (for services that depend on profiling)
MessageContext mc = MessageContext.getCurrentContext();
logger.debug("Setting userId to " + userId);
mc.setProperty(WSHandlerConstants.USER, userId);
} else {
logger.error("Unrecognized Callback");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment