Getting Token request failed error on MM 4.3.2 using Gitlab Omnibus
Steps to reproduce
I am using Gitlab 10.2.2 and MM 4.3.2. Each on separate VM.
Expected behavior
I have MM configured to only allow Sign-In with Gitlab (Gitlab SSO). When I try to sign-in, MM should login directly but instead I see a Token request failed error.
Observed behavior
As I said, I get a Token request failed error. If I click back and I click again on Sign-in with Gitlab, it works as expected. It´s a first time login issue.
I have the same issue with MM 4.4.5 and Gitlab 10.2.3 on separate hosts.
P.S.
Temporary solution for me is to make TokenEndpoint and UserApiEndpoint simple http instead of https in mattermost gitlab config. Though all ssl certificates are valid and trusted on both hosts.
Our devs have been trying to troubleshoot this issue on the GitLab forum, so, to prevent duplicate postings, I’ll close this issue off here and we can track it via GitLab forum.