blob: 902c9d94f0bae1b8ff7f1dd6d8e4c7699a72ce5b [file] [log] [blame]
// Licensed to the Apache Software Foundation (ASF) under one or more contributor
// license agreements; and to You under the Apache License, Version 2.0.
function handleAuth(triggerData, options) {
var auth = triggerData.apikey.split(':');
options.auth = {
user: auth[0],
pass: auth[1]
};
return Promise.resolve(options);
}
module.exports = {
'handleAuth': handleAuth
};