Commit 5946366b by Tuukka Kivilahti

username is no longer null

1 parent 844809d7
......@@ -33,12 +33,11 @@ public class RestMacAuthPBean extends ApiAuth implements AuthenticationFormat {
AuthenticationResult ret = null;
if (password.startsWith(JaasBeanLocal.REST_PREFIX)) {
ret = new AuthenticationResult();
ret.setUsertype(UserType.REST.name());
if(restAuth(password, event) != null) {
ret = new AuthenticationResult();
ret.setUsertype(UserType.REST.name());
ret.setUsername(jaasUsername);
}
//ret.setUsername(restAuth(password, event) + '@'+domain);
}
return ret;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!