Basic Authentication in header

From SMTX Wiki
Revision as of 10:24, 19 January 2024 by Smtxwiki (talk | contribs) (Created page with "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 } };")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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
   }
};