Link Search Menu Expand Document

添加 Inline Hook

当您的外部服务创建好后,您需要通过添加 Inline Hook 将外部服务与 XAuth 连接起来。

  1. 在 XAuth 管理后台,打开 工作流 - Inline Hook 页面。
  2. 点击添加 Inline Hook
    • 当前创建的 Inline Hook 默认为外部认证类型,该 Inline Hook 启用后,Import 类型的用户在登录 XAuth 时需要使用外部认证服务的用户名密码进行身份认证。
  3. 设置以下属性:
    • 名称,该 Inline Hook 的名称;
    • Request URL,外部服务的端点URL ,XAuth 将向该 URL 发送请求;
    • Authentication field,请求头中认证和授权字段的参数名,选填;
    • Authentication secret,请求头中认证和授权字段对应的参数值,选填;
    • 自定义 Header 参数 ,请求头中需要成对提供的其它参数名和参数值,选填。

      例如,使用Basic Auth时

      • Authentication field = authorization
      • Authentication secret = Basic cGFzc3dvcmQ=
  4. 单击 保存
  5. 点击启用, 以激活该 Inline Hook 。
    • Inline Hook 创建成功后,默认为停用状态,需要由管理员手动启用。

image