gitlab配置文件位置:/etc/gitlab/gitlab.rb
gitlab_rails['omniauth_enabled'] = true
gitlab_rails['omniauth_allow_single_sign_on'] = true
gitlab_rails['omniauth_block_auto_created_users'] = false
gitlab_rails['omniauth_providers'] = [
{
"name" => "crowd",
"args" => {
"crowd_server_url" => "http://192.168.2.55:8095/crowd",
"application_name" => "git.utd",
"application_password" => "git.utd"
}
}
]
修改配置后执行gitlab-ctl reconfigure
本文介绍如何在GitLab中配置OAuth认证,通过设置gitlab.rb文件启用并配置Crowd作为身份提供商,实现用户单点登录功能。
2395

被折叠的 条评论
为什么被折叠?



