Create a Trigger Connection Definition Using OAuth2.0 Security Policy

This procedure gives an overview of how to implement a trigger connection definition that uses OAuth2.0 security policy.

  1. Open the adapter definition document in Visual Studio Code Editor.
  2. Navigate to the connection code section of the document and in the security policy, set the scope to TRIGGER.
  3. Set the refName parameter to OAUTH2.0_TOKEN_VALIDATION.

    Sample code:

     "securityPolicies": [
         {  
            "type": "managed",
            "refName": "OAUTH2.0_TOKEN_VALIDATION",
            "description": "Validates OAuth2.0 token",
            "displayName": "OAuth2.0",
            "scope": "TRIGGER"
          }
       ]