Debian Codegraph @

docs/socialaccount/providers/github.rst

raw
1 GitHub
2 ------
3
4 App registration (get your key and secret here)
5 https://github.com/settings/applications/new
6
7 Development callback URL
8 http://127.0.0.1:8000/accounts/github/login/callback/
9
10 If you want more than just read-only access to public data, specify the scope
11 as follows. See https://developer.github.com/v3/oauth/#scopes for details.
12
13 .. code-block:: python
14
15 SOCIALACCOUNT_PROVIDERS = {
16 'github': {
17 'SCOPE': [
18 'user',
19 'repo',
20 'read:org',
21 ],
22 }
23 }
24
25 Enterprise Support
26 ******************
27
28 If you use GitHub Enterprise add your server URL to your Django settings as
29 follows:
30
31 .. code-block:: python
32
33 SOCIALACCOUNT_PROVIDERS = {
34 'github': {
35 'GITHUB_URL': 'https://your.github-server.domain',
36 }
37 }