I have Omnibus Gitlab and Mattermost installed on two separate machines. Both use HTTPS with Let’s encrypt certificates and HTTPS works fine.
The problem is that when I use SSO with Gitlab, Mattermost returns the dreadful error: Bad response from token request. The log file is the following (note how the details section is empty!):
[EROR] /signup/gitlab/complete:AuthorizeOAuthUser code=500 rid=o9nzr1yjbtr15xqi5hy8pwssnh uid= ip=IP_ADDRESS Bad response from token request [details: ]
I have tried including Let’s encrypt certificate authority as explained in other posts, etc. but it did not help. Any Suggestions? Would love to solve this issue.
Just to give more context, I have created an account on Mattermost and tried to enable SSO as login method. Here is the Gitlab log when SSO fails. Any help would be really appreciated!
One thing I noticed is that the callback URL called is always ‘…/signup/gitlab/complete’ while ‘…/login/gitlab/complete’ never gets called.
I have found that this is because my Gitlab has SSL client certificates enabled. Seems to be a bug! Am I missing something? Is there a way to use SSO when SSL client certificates have been enabled in Gitlab?
I apologize for the late response. Mattermost currently doesn’t support using SSL client certificates but it’s certainly something we’d add if it garnered enough community support for the idea.
It looks like there is already some support for the idea here. If you’d like to show your support, feel free to create an account and vote/comment on the issue