Follow these steps to configure user security credentials for a REST client connection.
Before you begin
- Configure a
zosconnect_zosConnectServiceRestClientConnection
element in
server.xml. For more information, see Configuring a REST client connection in IBM z/OS Connect.
- Locate the WebSphere® Liberty profile server
securityUtility command tool, which can be found in the
<installation_path>/wlp/bin directory.
Procedure
- Use the securityUtility encode command to encode the password for the
user ID that is to be defined for the connection. For more information, see the securityUtility command.
- Define a
zosconnect_zosConnectServiceRestBasicAuth
element in
server.xml. The userName and password
attributes must both be specified. For the password, specify the entire encoded string output by
running the securityUtility command.
- Add the basicAuthRef attribute to the
zosconnect_zosConnectServiceRestClientConnection
element to reference the
zosconnect_zosConnectServiceRestClientBasicAuth
element. For example:
<zosconnect_zosConnectServiceRestClientBasicAuth id="authABC"
userName="SYSUSER" password="{xor}OjIvbi8oMzs="/>
<zosconnect_zosConnectServiceRestClientConnection id="restConn"
host="example.com" port="1110" basicAuthRef="authABC"/>