1

尝试将 SSO 与 gitlab 一起使用时出现以下错误。如何在 Gitlab 中启用 OAuth2?

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"
4

1 回答 1

0

我启用mattermost['service_enable_oauth_service_provider'] = true了,但它给了我一个不同的错误。也许这就是你所需要的。

于 2017-02-03T18:31:04.107 回答