I’m trying to get mattermost bundeld with gitlab 9.1.1 to work. The mattermost signon fails when I sign on via gitlab. Gitlab displays a page that says I have to authorize access. When I do, I get the following error in the log:
[2017/04/26 21:39:43 PDT] [DEBG] /api/v3/oauth/gitlab/signup
[2017/04/26 21:39:47 PDT] [DEBG] /signup/gitlab/complete
[2017/04/26 21:39:50 PDT] [EROR] /signup/gitlab/complete:AuthorizeOAuthUser code=500 rid=i73sta9dzfdetyseichyngqxca uid= ip=xx.xx.xx.xx Bad token type [details: token_type=, response_body=]
[2017/04/26 21:39:51 PDT] [DEBG] /error
[2017/04/26 21:39:51 PDT] [DEBG] /api/v3/users/initial_load
The ip is my external IP.
replaced my real host with “example” in the following config:
mattermost_external_url ‘https://mm.example.com’
mattermost[‘enable’] = true
mattermost[‘log_file_level’] = ‘DEBUG’
mattermost[‘service_use_ssl’] = true
mattermost[‘service_site_url’] = ‘https://mm.example.com’
mattermost[‘team_site_name’] = “Mattermost”
mattermost[‘team_restrict_creation_to_domains’] = “example.com”
mattermost[‘gitlab_enable’] = true
mattermost[‘gitlab_id’] = “xxx”
mattermost[‘gitlab_secret’] = “xxx”
mattermost[‘gitlab_scope’] = “”
mattermost[‘gitlab_auth_endpoint’] = “https://example.com/oauth/authorize”
mattermost[‘gitlab_token_endpoint’] = “https://example.com/oauth/token”
mattermost[‘gitlab_user_api_endpoint’] = “https://example.com/api/v3/user”
mattermost_nginx[‘enable’] = true
mattermost_nginx[‘ssl_certificate’] = “/etc/letsencrypt/live/example.com/fullchain.pem”
mattermost_nginx[‘ssl_certificate_key’] = “/etc/letsencrypt/live/example.com/privkey.pem”
gitlab_id and secret were set from admin page.
Any idea what is wrong?