Specifying security credentials for connecting to a secured data source

You can use the mqsicredentials or 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:
    • Run the mqsicredentials command, using the following format:
      mqsicredentials broker_name --integration-server default --create --credential-type loopback --credential-name lbreqid1 --username myLoopBackUserID --password myLoopBackPassword

      If the integration server is stopped, you must also specify the vault key by including the --vault-key myVaultKey option, or by using a vaultrc file; for further details, see mqsicredentials command.

      Run the command for each integration server in which you require credentials to be created. If you require credentials to be created in all integration servers being managed by the integration node, you can use the --all-integration-servers option on the command.

    • Alternatively, you can 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.
      For example:
      mqsisetdbparms INODE -n loopback::lbreqid1 -u myLoopBackUserID -p myLoopBackPassword

      Credentials are scoped at the integration node level and apply to the integration servers that it manages.

  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.