Implementing authentication for the Rent-a-Car example
To enable authentication for the Rent-a-Car example, update its configuration files as follows:
- 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}}
- Then update <container>/etc/users.properties with the role
information:
sluser=upassword,sl_read slservice=spassword,sl_maintain
- 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}}