postcat-basic-auth
Advanced tools
Comparing version 0.0.6 to 0.0.7
module.exports = { | ||
authAPI: (config) => { | ||
const headerValue = `Basic ${Buffer.from( | ||
`${config.username || ''}::${config.password}` | ||
`${config.username || ''}:${config.password}` | ||
).toString('base64')}` | ||
return `pc.request.headers.add({ | ||
key:'Authorization1', value:'${headerValue}' | ||
key:'Authorization', value:'${headerValue}' | ||
})` | ||
} | ||
} |
{ | ||
"name": "postcat-basic-auth", | ||
"title": "Basic Authorization", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "Basic Auth is an HTTP-based security authentication mechanism that adds the Authorization field to the request header.", | ||
@@ -46,3 +46,4 @@ "author": { | ||
} | ||
} | ||
}, | ||
"dependencies": {} | ||
} |
134693