function checkAuth(uri, req){
return new Promise(function(resolve, reject) {
request({
- uri: uri,
+ uri: utils.projectContextUrl(uri),
method: 'GET',
headers: _.extend({}, {
- 'Authorization': req.get('Authorization'),
+ 'Authorization': req.session && req.session.authorization,
forever: CONSTANTS.FOREVER_ON,
rejectUnauthorized: false,
})