Authenticating to the Talend Data Preparation REST API via an SSO token request - 7.3

Talend Data Preparation User Guide

author
Talend Documentation Team
EnrichVersion
7.3
EnrichProdName
Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Real-Time Big Data Platform
task
Data Quality and Preparation > Cleansing data
EnrichPlatform
Talend Data Preparation

The Talend Data Preparation REST API are secured by the Oauth2 protocol and an Authorization header (Bearer Authentication).

To retrieve a Bearer token from the SSO provider and access the Talend Data Preparation REST API, you will need the Authorization response headers of an HTTP POST request on the /login path.

Procedure

  1. To retrieve an authentication token, open a terminal and execute the following request:
    curl -v -X POST <tdp_url>/login -d 'username=<USERNAME>&password=<PASSWORD>'
    

    Where tdp_url is the URL of your Talend Data Preparation environment.

    You will get the following Response header:

    access-control-expose-headers: Authorization
    Authorization: Bearer <token>
  2. Request any Talend Data Preparation REST API with the following Authorization request header:
    Authorization: Bearer <token>