return authenzResult;
}
private void portalLogin (String userId, String password, AuthenzResult authenzResult) {
//FIXME? These authenzRC state numbers are confusing.
SimpleCredentials creds =
new SimpleCredentials(userId, password.toCharArray());
if (portal.login(creds, null)) {
signInCallback(userId, portal);
// TODO: maybe it's better to make portal.login method return
// authenticated user object?