summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2015-12-02 08:08:27 -0500
committerJoram Wilander <jwawilander@gmail.com>2015-12-02 08:08:27 -0500
commit7678d4aafa17a27da897925a169931d1c2cb07fc (patch)
tree0189eeea0754ca2d1d80e85c891f992db5eacc6e /doc
parent5925d3118019da6ead1494ed38f6243cde297b43 (diff)
parentff664e44ec13f64e6848a466eca37eb85de694a0 (diff)
downloadchat-7678d4aafa17a27da897925a169931d1c2cb07fc.tar.gz
chat-7678d4aafa17a27da897925a169931d1c2cb07fc.tar.bz2
chat-7678d4aafa17a27da897925a169931d1c2cb07fc.zip
Merge pull request #1556 from npcode/sso-github-ent
Make the Gitlab SSO Support compatible with Github Enterprise
Diffstat (limited to 'doc')
-rw-r--r--doc/integrations/Single-Sign-On/Github.md20
1 files changed, 20 insertions, 0 deletions
diff --git a/doc/integrations/Single-Sign-On/Github.md b/doc/integrations/Single-Sign-On/Github.md
new file mode 100644
index 000000000..6f6633846
--- /dev/null
+++ b/doc/integrations/Single-Sign-On/Github.md
@@ -0,0 +1,20 @@
+## Configuring GitHub Enterprise Single-Sign-On (unofficial)
+
+Note: Because the authentication interface of GitHub Enterprise is similar to that of GitLab, the GitLab SSO feature can be used to unofficially also support GitHub Enterprise SSO.
+
+Follow these steps to configure Mattermost to use Github Enterprise as a single-sign-on (SSO) service for team creation, account creation and sign-in using the GitLab SSO interface.
+
+1. Login to your GitHub Enterprise account and go to the Applications section in Profile Settings.
+2. Add a new application called "Mattermost" with the following as Authorization callback URL:
+ * `<your-mattermost-url>` (example: http://localhost:8065)
+
+3. Submit the application and copy the given _Id_ and _Secret_ into the appropriate _GitLabSettings_ fields in config/config.json
+
+4. Also in config/config.json, set _Enable_ to `true` for the _gitlab_ section, leave _Scope_ blank and use the following for the endpoints:
+ * _AuthEndpoint_: `https://<your-github-enterprise-url>/oauth/authorize` (example https://github.com/oauth/authorize)
+ * _TokenEndpoint_: `https://<your-github-enterprise-url>/oauth/access_token`
+ * _UserApiEndpoint_: `https://<your-github-enterprise-url>/api/v3/user`
+
+5. (Optional) If you would like to force all users to sign-up with GitHub Enterprise only, in the _ServiceSettings_ section of config/config.json set _DisableEmailSignUp_ to `true`.
+
+6. Restart your Mattermost server to see the changes take effect.