authnPopulateContext.js revision 43ac19f28eaa5f298d5534a1f4ac21076399f435
/*global security */
var userDetail,
'query' : {
'Contains' : {
'field' : 'sAMAccountName',
'values' : [
]
}
}
});
}
// 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"
};
}
}
}