创建钉钉应用
复制 appKey和appSecret
修改gitlab.rb配置
# 自动链接ldap用户
gitlab_rails['omniauth_auto_link_ldap_user'] = true
gitlab_rails['omniauth_providers'] = [
{
name: "dingtalk",
# 登录按钮展示名称
label: "钉钉",
app_id: "appKey",
app_secret: "appSecret"
}
]
重新配置gitlab生效
gitlab-ctl reconfigure