support basic auth with just pass token (#4063)

* feat: support basic auth with token

* refactor: change param name
This commit is contained in:
Caleb Cartwright
2019-09-22 11:14:01 -05:00
committed by GitHub
parent 7e0ae39a20
commit d18d4218fc
3 changed files with 25 additions and 3 deletions

View File

@@ -16,7 +16,10 @@ const latestBuildSchema = Joi.object({
module.exports = class AzureDevOpsBase extends BaseJsonService {
static get auth() {
return { passKey: 'azure_devops_token' }
return {
passKey: 'azure_devops_token',
defaultToEmptyStringForUser: true,
}
}
async fetch({ url, options, schema, errorMessages }) {