summaryrefslogtreecommitdiffstats
path: root/doc/integrations
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-09-01 08:49:54 -0400
committerChristopher Speller <crspeller@gmail.com>2015-09-01 08:49:54 -0400
commit72575ac7bdd5bfe7bd544ba238f8d1c0126635aa (patch)
treef1ed51dfc87879e73261625f3afb4d4169e2a3f8 /doc/integrations
parent0b3db018d33601a44c86d08771441c5dacd18969 (diff)
parent8d6c35481124d7e30bdb559f440c48b3e5eb4e0d (diff)
downloadchat-72575ac7bdd5bfe7bd544ba238f8d1c0126635aa.tar.gz
chat-72575ac7bdd5bfe7bd544ba238f8d1c0126635aa.tar.bz2
chat-72575ac7bdd5bfe7bd544ba238f8d1c0126635aa.zip
Merging release branch 'release-0.7.0'
Diffstat (limited to 'doc/integrations')
-rw-r--r--doc/integrations/sso/gitlab-sso.md19
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/integrations/sso/gitlab-sso.md b/doc/integrations/sso/gitlab-sso.md
new file mode 100644
index 000000000..c0cd6cb45
--- /dev/null
+++ b/doc/integrations/sso/gitlab-sso.md
@@ -0,0 +1,19 @@
+## 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:
+ * `<your-mattermost-url>/login/gitlab/complete` (example: http://localhost:8065/login/gitlab/complete)
+ * `<your-mattermost-url>/signup/gitlab/complete`
+
+3. Submit the application and copy the given _Id_ and _Secret_ into the appropriate _SSOSettings_ fields in config/config.json
+
+4. 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`
+
+6. (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 _AllowEmailSignUp_ to `false`.
+
+7. Restart your Mattermost server to see the changes take effect.