populateContext.js revision 759cbe36aeb56cbe1e788d90fbaa7f1a7e797f5d
/*global security */
var userDetail,
// If not found in managed, look in internal table
}
}
// Only augment userid if missing
}
// Only augment roles if missing
if (!security["openidm-roles"]) {
}
logger.debug("Augmented context for {} with userid : {}, roles : {}", security.username, security.userid, security["openidm-roles"]);
} else {
throw {
"openidmCode" : 403,
"message" : "Access denied, user detail retrieved ambiguous"
};
} else {
throw {
"openidmCode" : 403,
"message" : "Access denied, no user detail could be retrieved"
};
}
}