how do we achieve this for a cfhttp call ```basicA...
# cfml-general
s
how do we achieve this for a cfhttp call
Copy code
basicAuth = require('btoa')(authConfig.clientId + ':' + authConfig.clientSecret);
....
headers: {
        'Accept': 'application/json',
        'Authorization': 'Basic ' + basicAuth,
        'Content-Type' : 'application/x-www-form-urlencoded'
      },
is it just doing a
base64
and adding an authorization header. or does this get done automatically if we use the
username
and
password
args?
b
@Scott Steinbeck I'm pretty sure that's done automatically when you use the username and password attributes of cfhttp