Specifying security credentials for connecting to a secured data source

You can use the mqsisetdbparms command to specify the security credentials used by a LoopBackRequest node to connect to a secured data source.

About this task

You can associate a user name, password, client identity, and client secret with connections to a secured LoopBack® connector. Alternatively, you can specify the security credentials in the datasources.json file; however, the data is stored in the file in plain text.

Procedure

Follow these steps to configure the security credentials for connections to a LoopBack connector:

  1. Run the mqsisetdbparms command, specifying the following parameters:
    -n loopback::securityIdentity
    The name of the security identity that is used to authenticate a connection to a LoopBack connector, where securityIdentity is the value of the Security identity property in the LoopBackRequest node.
    -u userID
    The user ID for connecting to the LoopBack connector application.
    -p password
    The password for accessing the LoopBack connector application.
    -c clientIdentity
    (Optional) The name of the client ID of the LoopBack connector application.
    -s clientSecret
    (Optional) The client secret of the LoopBack connector application.
    For example:
    mqsisetdbparms IBNODE -n loopback::lbreqid1 -u myLoopBackUserID -p myLoopBackPassword 
  2. The specified credentials are passed to the LoopBack connector and are used to connect to a data source.

What to do next

Create a message flow and add a LoopBackRequest node to enable you to create, retrieve, update, or delete records through your LoopBack connector. For more information, see Accessing and creating records by using the LoopBackRequest node.