Create a Trigger Connection Definition Using Basic Authentication

HTTP Basic Authentication is a simple authentication scheme built into the HTTP protocol.

The client sends HTTP requests with the Authorization header that contains the word Basic followed by a space and a base64-encoded string containing the username and password. For example, Basic username:password.

  1. Open the adapter definition document in Visual Studio Code Editor.
  2. Navigate to the connection code section of the document.
  3. Define the type of security policy as managed in the connection definition.
  4. Define the value of the scope property as TRIGGER.
  5. Set the hidden security properties to true value to hide the username and password.
  6. Set any default parameter to NA.

    Note:

    The default parameter does not impact this security policy.

    Sample code:

     "securityPolicies": [
         {  
            "type": "managed",
            "refName": "BASIC_AUTH",
            "description": "Validate Basic Authentication token",
            "displayName": "Basic Authentication",
            "scope": "TRIGGER",
            "securityProperties": [
               {
                 "name": "username",
                 "hidden": true,
                 "required": false,
                 "default": "NA"
               },
               {
                 "name": "password",
                 "hidden": true,
                 "required": false,
                 "default": "NA"
               }
            ]
          }
       ]