GitLab (Pro)

DefectDojo Pro 支持通过 GitLab 登录。开源版 DefectDojo 不包含 SSO——开源版的访问控制请参见已授权用户

前提条件

在配置 DefectDojo 之前,请先在 GitLab 中完成以下步骤:

  1. 前往您 GitLab 个人资料的应用页面:

    • GitLab.com:https://gitlab.com/profile/applications
    • 自托管:https://your-gitlab-host/profile/applications
  2. 创建一个新应用:

    • Name: DefectDojo
    • Redirect URI: https://your-dojo-instance.cloud.defectdojo.com/complete/gitlab/
  3. 记录该应用的 Application IDSecret

配置

在 DefectDojo 中,前往企业设置 > OAuth 设置,选择 GitLab,然后填写表单:

  • GitLab OAuth Key——输入您的 Application ID
  • GitLab OAuth Secret——输入您的 Secret
  • GitLab API URL——输入您 GitLab 实例的基础 URL,例如 https://gitlab.com

勾选启用 GitLab OAuth并提交表单。登录页面上会出现一个使用 GitLab 登录按钮。