Implementing authentication for the Rent-a-Car example - 8.0

Talend ESB Infrastructure Services Configuration Guide

Version
8.0
Language
English
Product
Talend Data Fabric
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for ESB
Talend Real-Time Big Data Platform
Module
Talend ESB
Talend Runtime
Content
Design and Development
Installation and Upgrade

To enable authentication for the Rent-a-Car example, update its configuration files as follows:

  1. In the first container (where you run the Locator feature and the Rent-a-Car services), update <container>/etc/org.talend.esb.locator.cfg with the user information:
    authentication.name=${env:TESB_LOCATOR_AUTHENTICATION_USERNAME:-${TESB_LOCATOR_AUTHENTICATION_USERNAME:-slservice}}
    authentication.password=${env:TESB_LOCATOR_AUTHENTICATION_PASSWORD:-${TESB_LOCATOR_AUTHENTICATION_PASSWORD}}
  2. Then update <container>/etc/users.properties with the role information:
    sluser=upassword,sl_read
    slservice=spassword,sl_maintain
  3. In the second container (where you run the Rent-a-Car client API), update <container>/etc/org.talend.esb.locator.cfg and add:
    authentication.name=${env:TESB_LOCATOR_AUTHENTICATION_USERNAME:-${TESB_LOCATOR_AUTHENTICATION_USERNAME:-sluser}}
    authentication.password=${env:TESB_LOCATOR_AUTHENTICATION_PASSWORD:-${TESB_LOCATOR_AUTHENTICATION_PASSWORD}}