Skip to main content Skip to complementary content

Authenticating to Talend Data Stewardship REST API

Sometimes you may want to access Talend Data Stewardship REST API and perform a set of actions such as tracking the audit events or listing specific campaigns. To do so you need to implement an API authentication and authorization method.

Before you begin

You have installed and launched all Talend Data Stewardship modules.

Procedure

  1. Open a terminal and execute a POST request to call a login API.
    This API provides an authentication token in the authorization response header.

    Below is a sample login POST request and response.

    Example

    curl -v -X POST '<TDS_URL>/data-stewardship/login?client-app=STUDIO' -F username=<USERNAME> -F password=<PASSWORD>
    > POST /data-stewardship/login?client-app=STUDIO HTTP/1.1
    > Host: <TDS-HOST>
    > User-Agent: curl/7.47.0
    > Accept: */*
    ...
    < access-control-expose-headers: authorization
    < authorization: Bearer eyJraWQiOiJpYW0tb2lkYy1jbG91ZCIsImQu2WembcCA
    ...
    
  2. In Talend Data Stewardship API calls, enter the authentication token value in the Authorization header.
    Below is a sample request and response to list campaigns owned by a specific campaign owner.

    Example

    curl -X GET 'https://<TDS-HOST>/data-stewardship/api/v1/campaigns/owned'
     -H 'Authorization: Bearer eyJraWQiOiJpYW0tb2lkYy1jbG91ZCIsImQu2WembcCA'
    Response:
    []

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!