Authentication

FTP/SFTP: For FTP/SFTP integrations, the authentication process relies on the credentials provided during app installation. These credentials will be used to establish a secure FTP/SFTP connection.

API: When it comes to API integrations, you have the flexibility to configure authentication based on your application's requirements. This can be done through the Authentication Resolver scripting box.

Input: API Credentials Output: Array of Authorization headers that will be included in the HTTP requests

// This is an example of basic authentication
  const credentials = $data.UserName +  ":"  + $data.Password;
  const base64EncodedCredentials = btoa(credentials);
  const authHeader = `Basic ${base64EncodedCredentials}`;

return [
    { Key: "Authorization", Value: authHeader }
  ];

Last updated