Can';t在GitLab CE上启用Google登录(omniauth)

Can';t在GitLab CE上启用Google登录(omniauth),gitlab,gitlab-omnibus,Gitlab,Gitlab Omnibus,我在GitLab安装中启用Google身份验证时遇到问题。我随后添加了enable Google authentication(接口有点变化,但我能够生成联系人所需的令牌&我的域的Google+api访问)。当我转到我的GitLab登录URL时,没有提供程序出现。我还启用了Omniauth。以下是my Gitlab.rb中的相关片段: gitlab_rails['omniauth_enabled'] = true gitlab_rails['omniauth_allow_single_sign_

我在GitLab安装中启用Google身份验证时遇到问题。我随后添加了enable Google authentication(接口有点变化,但我能够生成联系人所需的令牌&我的域的Google+api访问)。当我转到我的GitLab登录URL时,没有提供程序出现。我还启用了Omniauth。以下是my Gitlab.rb中的相关片段:

gitlab_rails['omniauth_enabled'] = true
gitlab_rails['omniauth_allow_single_sign_on'] = false
gitlab_rails['omniauth_block_auto_created_users'] = false
gitlab_rails['omniauth_providers'] = [
        {
        "name" => "google_oauth2",
        "app_id" => "not-showing",
        "app_secret" => "not-showing",
        "args" => { "access_type" => "offline", "approval_prompt" => '' }
        }
]
然而,我倾向于认为这是Omniauth本身的问题,因为在我的GitLab管理仪表板中,它旁边没有显示绿色的“开”图标:

我正在Ubuntu 14.04上运行服务器


如果您对此有任何了解,我们将不胜感激。

您需要在进行这些更改后重新配置并重新启动gitlab

sudo gitlab-ctl reconfigure
sudo gitlab-ctl restart
sudo gitlab-ctl reconfigure
sudo gitlab-ctl restart
更改此行:

...
gitlab_rails['omniauth_allow_single_sign_on'] = ['google_oauth2']
...
然后运行: