Skip to content

Commit

Permalink
Merge pull request #7 from odoublewen/patch-1
Browse files Browse the repository at this point in the history
Update github_enterprise.rst
  • Loading branch information
omab committed Jan 29, 2017
2 parents f5986bf + 35dfaf3 commit 8550556
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions docs/backends/github_enterprise.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,21 @@ GitHub Enterprise
GitHub Enterprise works similar to regular GitHub, which is in turn based on Facebook (OAuth).

- Register a new application on your instance of `GitHub Enterprise Developers`_,
set the callback URL to ``http://example.com/complete/github/`` replacing ``example.com``
set the callback URL to ``http://example.com/complete/github-enterprise/`` replacing ``example.com``
with your domain.

- Set the URL for your GitHub Enterprise appliance:

SOCIAL_AUTH_GITHUB_ENTERPRISE_URL = 'https://git.example.com/'

- Set the API URL for your GitHub Enterprise appliance:

SOCIAL_AUTH_GITHUB_ENTERPRISE_API_URL = 'https://git.example.com/api/v3/'

- Fill the ``Client ID`` and ``Client Secret`` values from GitHub in the settings:

SOCIAL_AUTH_GITHUB_ENTERPRISE_KEY = ''
SOCIAL_AUTH_GITHUB_ENTERPRISE_SECRET = ''
SOCIAL_AUTH_GITHUB_ENTERPRISE_KEY = 'Client_ID'
SOCIAL_AUTH_GITHUB_ENTERPRISE_SECRET = 'Client_Secret'

- Also it's possible to define extra permissions with::

Expand Down

0 comments on commit 8550556

Please sign in to comment.