Skip to main content

Implementing authentication for the Rent-a-Car example

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}}

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 – please let us know!