配置GitLab omniauth以使用Atlassian群组进行身份验证
(由于谷歌集团没有回应,因此在此重新发布) 可能遗漏了一些明显的东西,但我无法让GitLab CE 8.0.5使用群组服务器2.8.3作为omniauth提供程序。GitLab文档和谷歌搜索没有帮助 任何人都可以向我提供故障排除步骤、配置(混淆密码等)或检查下面的配置 GitLab配置:配置GitLab omniauth以使用Atlassian群组进行身份验证,gitlab,atlassian-crowd,Gitlab,Atlassian Crowd,(由于谷歌集团没有回应,因此在此重新发布) 可能遗漏了一些明显的东西,但我无法让GitLab CE 8.0.5使用群组服务器2.8.3作为omniauth提供程序。GitLab文档和谷歌搜索没有帮助 任何人都可以向我提供故障排除步骤、配置(混淆密码等)或检查下面的配置 GitLab配置: gitlab_rails['omniauth_enabled'] = true gitlab_rails['omniauth_allow_single_sign_on'] = true # gitlab_rai
gitlab_rails['omniauth_enabled'] = true
gitlab_rails['omniauth_allow_single_sign_on'] = true
# gitlab_rails['omniauth_auto_sign_in_with_provider'] = 'saml'
gitlab_rails['omniauth_block_auto_created_users'] = false
# gitlab_rails['omniauth_auto_link_ldap_user'] = false
gitlab_rails['omniauth_providers'] = [
{
"name" => "crowd",
"args" => {
"crowd_server_url" => "http://localhost:8095/crowd",
"application_name" => "crowd_gitlab",
"application_password" => "Password"
}
}
]
我安装的群组应用程序如下所示:
Name: crowd_gitlab
Application type: Generic Application
Active: x
Password: Password
群组选项卡出现在GitLab登录页面上,但我得到的错误是:
500
We're sorry, but something went wrong.
请注意,此错误期间显示的URL为
尝试增加通用跟踪级别并查看Crowd和GitLab上的日志,但看不到任何明显的内容。只是查看了功能矩阵,注意到只有EE支持Crowd。啊 我们成功地使用了Gitlab CE 7.7.2和Crowd 2.8.2。我不确定8.0.5是否会改变这一点 我们的配置如下
## OmniAuth settings
omniauth:
enabled: true
allow_single_sign_on: true
block_auto_created_users: true
providers:
- { name: 'crowd'
, strategy_class: 'OmniAuth::Strategies::Crowd'
, args: {
crowd_server_url: "http://crowd-server:8095/crowd",
application_name: "gitlab",
application_password: "PASSWORD"
}
}
我们还强制将群组登录页面作为Gitlab的默认页面,这比显示默认页面并强制他们单击群组按钮更容易让人困惑。错了。有关于如何在gitlab ce中使用群组的文档。它可能在某些时候受到限制,但对所有自我管理的实例都可用,请参见>“Atlassian Crowd”