Files
mattermost/doc/integrations/sso/gitlab-sso.md
2015-09-10 09:32:29 -04:00

1.2 KiB

Configuring GitLab Single-Sign-On

The following steps can be used to configure Mattermost to use GitLab as a single-sign-on (SSO) service for team creation, account creation and sign-in.

  1. Login to your GitLab account and go to the Applications section either in Profile Settings or Admin Area.
  2. Add a new application called "Mattermost" with the following as Redirect URIs:
  1. Submit the application and copy the given Id and Secret into the appropriate SSOSettings fields in config/config.json

  2. Also in config/config.json, set Allow to true for the gitlab section, leave Scope blank and use the following for the endpoints:

  • AuthEndpoint: <your-gitlab-url>/oauth/authorize (example http://localhost:3000/oauth/authorize)
  • TokenEndpoint: <your-gitlab-url>/oauth/token
  • UserApiEndpoint: <your-gitlab-url>/api/v3/user
  1. (Optional) If you would like to force all users to sign-up with GitLab only, in the ServiceSettings section of config/config.json please set DisableEmailSignUp to true.

  2. Restart your Mattermost server to see the changes take effect.