You can use the API to configure a Hybrid Data Pipeline data source to use OAuth by specifying all required OAuth parameters directly in the data source.

The following POST request creates a Salesforce data source configured to use OAuth 2.0. For further details, see Data Sources API.

POST https://MyServer:8443/api/mgmt/datasources
{
    "name": "Test_SF",
    "dataStore": 1,
    "connectionType": "Cloud",
    "description": "",
    "options": {
        "AuthenticationMethod": "oauth2.0",
        "ODataVersion": "4",
        "AuthURI": "https://login.salesforce.com/services/oauth2/authorize",
        "TokenURI": "https://login.salesforce.com/services/oauth2/token",
        "ClientId": "asdfjasdljfasdkjf",
        "ClientSecret": "1912308409123890",
        "AccessToken": "Fyld2hMQTB3gXRW3Gt",
        "RefreshToken": "Tg9wrxG9btqmH4DLYf",
        "Scope": "full offline_access"
    }
}