if (locale == null)
locale = Locale.getDefault();
// FIXME add it to Subject
- // UiContext.setLocale(locale);
+// Locale.setDefault(locale);
username = nameCallback.getName();
if (username == null || username.trim().equals("")) {
AuthenticatingUser authenticatingUser = new AuthenticatingUser(user.getName(), password);
bindAuthorization = userAdmin.getAuthorization(authenticatingUser);
// TODO check tokens as well
- if (bindAuthorization != null)
+ if (bindAuthorization != null) {
+ authenticatedUser = user;
return true;
+ }
} catch (Exception e) {
// silent
if(log.isTraceEnabled())