Basic Authentication in header
Jump to navigation
Jump to search
Below is an example how to use basic authentication in the SMTX WebServices
var username = "john";
var password = "pass123";
var basicauthvalue = CommonInterface.convertToBase64(username + ':' + password);
return {
updateheaders: {
Authorization: "Basic " + basicauthvalue
}
};