Thanks again for the help,
I double checked the URLs in config and all is good, but if i go to http://gitlab.XXXXXXXXXXX.com/oauth/token in my browser there is indeed a 404 not found response from gitlab, whereas the other 2 urls (/authorize and /api/V3/user) works (401 or gitlab error message)
"GitLabSettings": {
"Enable": true,
"Secret": "mysecret",
"Id": "myid",
"Scope": "",
"AuthEndpoint": "http://gitlab.XXXXXXXXXXX.com/oauth/authorize",
"TokenEndpoint": "http://gitlab.XXXXXXXXXXX.com/oauth/token",
"UserApiEndpoint": "http://gitlab.XXXXXXXXXXX.com/api/v3/user"
}
I didn't find an "EnableInsecureOutgoingConnections" entry in my mattermost config.json file, here is the "ServiceSettings" section :
"ServiceSettings": {
"ListenAddress": "127.0.0.1:8065",
"MaximumLoginAttempts": 10,
"SegmentDeveloperKey": "",
"GoogleDeveloperKey": "",
"EnableOAuthServiceProvider": false,
"EnableIncomingWebhooks": false,
"EnableOutgoingWebhooks": false,
"EnablePostUsernameOverride": false,
"EnablePostIconOverride": false,
"EnableTesting": false,
"EnableSecurityFixAlert": true,
"EnableDeveloper": false,
"SessionLengthWebInDays" : 30,
"SessionLengthMobileInDays" : 30,
"SessionLengthSSOInDays" : 30,
"SessionCacheInMinutes" : 10
},
I added "EnableInsecureOutgoingConnections" : true
but it doesn't seems to change anything