Skip to content
Snippets Groups Projects
Commit 22464f98 authored by jurgenhaas's avatar jurgenhaas
Browse files

Adjust authentication for TeamWork

parent 7fbb6f1f
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,12 @@ TeamWorkTrackerSource.prototype.poll = function() {
var url = source.url + '/projects/' + source.project_include + '/latestActivity.json';
source.debug(url);
request
.get(url,
.get({
url: url,
headers : {
"Authorization" : 'BASIC ' + new Buffer(source.password + ':xxx').toString('base64')
}
},
function(error, response, body) {
if (error || response.statusCode !== 200) return;
......@@ -35,7 +40,6 @@ TeamWorkTrackerSource.prototype.poll = function() {
source.debug(body);
source.readItems(res.activity, true);
})
.auth(null, null, true, 'BASIC ' + new Buffer(source.password + ':xxx').toString('base64'))
.on('error', function(e) {
source.debug('ERROR: ' + e.message);
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment