为集成服务器上的所有 HTTP 和 SOAP 输入节点配置身份验证

在部署到集成服务器的所有 HTTP 和 SOAP 输入节点上强制执行身份验证。

关于此任务

通过在 server.conf.yaml 配置文件中设置 forceServer 属性,可以配置独立或托管集成服务器在所有 HTTP 和 SOAP 输入节点上强制执行基本身份验证:

#forceServerHTTP:               false  # Set true to override and force unsecured HTTP on all HTTP/SOAP input nodes deployed in this server. Defaults to false.
#forceServerHTTPS:              false  # Set true to override and force secured HTTPS on all HTTP/SOAP input nodes deployed in this server. Defaults to false.
#forceServerHTTPSecurityProfile: ''    # Set a security profile, {<policy project name>}:<security profile basename>, to override and force all HTTP/SOAP transport
                                       # input nodes deployed in this server to apply the security set in the profile. Default is unset, so flow or node setting applies

过程

要配置集成服务器在 HTTP 和 SOAP 输入节点上强制执行基本身份验证,请完成以下步骤:

  1. 使用 YAML 编辑器打开集成服务器的 server.conf.yaml 配置文件。

    您可以使用 IBM® App Connect Enterprise 工具箱中提供的内置 YAML 编辑器来编辑该文件,方法是在 "应用程序开发" 视图中双击该文件,或者右键单击该文件并选择 打开时使用 > YAML 编辑器。 如果选择使用纯文本编辑器来编辑文件,请确保不包含任何跳进字符 (在 YAML 中无效) ,并使用 YAML 验证工具来验证文件的内容。

  2. 通过取消注释 forceServerHTTPS 属性并将其设置为 true ,在部署到集成服务器的所有 HTTP 和 SOAP 输入节点上强制执行安全 HTTPS。
    此设置将覆盖在 HTTP 和 SOAP 输入节点以及消息流上指定的任何现有认证设置。
  3. 通过将 forceServerHTTPSecurityProfile 属性设置为策略名称(格式为 {policy_project_name}:security_profile_name ;例如),指定安全配置文件以应用于部署到集成服务器的所有 HTTP 和 SOAP 输入节点:
    
    forceServerHTTPSecurityProfile: '{SecPolicy}:BasicAuthLocal'
    安全概要文件中的安全设置将覆盖在 HTTP 和 SOAP 输入节点以及消息流上指定的任何安全设置。 如果未设置此属性,那么输入节点或消息流上指定的设置将适用。
  4. 重新启动集成服务器以使更改生效。