Mattermost, Inc.

[SOLVED] Gitlab oAuth redirect uri

Hi guys. I have a simple question. Why new version of mattermost 4.0.1 (i assume versions above 3.6.5 too) are sending redirect_uri value without host ?

This is the authorize request from mattermost to gitlab in 3.6.5:
http://mygitlabserver.dev/oauth/authorize?response_type=code&client_id=$CLIENT_ID&redirect_uri=$HOST/signup/gitlab/complete&state=SOM_STATE&scope=api

And now the redirect_uri is only the url path “/signup/gitlab/complete” WITHOUT Host part.
What happend ?

Thank you guys for reply.

I will reply to myself. In Newer versions you must specify Site Url config value as said here: https://docs.mattermost.com/administration/config-settings.html

Thanks @Kilmar,

Pleased you’ve fixed the issue - thanks for posting back how you resolved it :slight_smile: