From 6d63f5703c1849b688aaef6570e9b366b70eefab Mon Sep 17 00:00:00 2001 From: Yi EungJun Date: Tue, 1 Dec 2015 16:39:27 +0900 Subject: Make the Gitlab SSO Support compatible with Github Enterprise See doc/integrations/Single-Sign-On/Github.md for the usage. Note: I thought it should work also with Github.com but it failed with "Bad token type" error. --- doc/integrations/Single-Sign-On/Github.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 doc/integrations/Single-Sign-On/Github.md (limited to 'doc/integrations') diff --git a/doc/integrations/Single-Sign-On/Github.md b/doc/integrations/Single-Sign-On/Github.md new file mode 100644 index 000000000..12b2c537e --- /dev/null +++ b/doc/integrations/Single-Sign-On/Github.md @@ -0,0 +1,18 @@ +## Configuring GitHub Enterprise Single-Sign-On + +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. + +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: + * `` (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:///oauth/authorize` (example https://github.com/oauth/authorize) + * _TokenEndpoint_: `https:///oauth/access_token` + * _UserApiEndpoint_: `https:///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. -- cgit v1.2.3-1-g7c22