2016-12-14 127 views
1

當我嘗試使用SSO for mattermost和gitlab時,出現以下錯誤。你如何在Gitlab中啓用OAuth2?GitLab最重要的問題 - 單一登錄破解

GitLab Mattermost needs your help: 

The system admin has turned off OAuth2 Service Provider. 
Go back to Mattermost 

我/etc/gitlab/gitlab.rb看起來是這樣的 -

mattermost_external_url 'http://url/' 
mattermost['gitlab_enable'] = true 
mattermost['gitlab_id'] = "code123" 
mattermost['gitlab_secret'] = "code456" 
mattermost['gitlab_scope'] = "" 
mattermost['gitlab_auth_endpoint'] = "http://url/oauth/authorize" 
mattermost['gitlab_token_endpoint'] = "http://url/oauth/token" 
mattermost['gitlab_user_api_endpoint'] = "http://url/api/v3/user" 

回答

0

我啓用mattermost['service_enable_oauth_service_provider'] = true,但它給了我一個不同的錯誤。也許這就是你需要的一切。