| 1 |
Stack Exchange |
| 2 |
-------------- |
| 3 |
|
| 4 |
Register your OAuth2 app over at ``http://stackapps.com/apps/oauth/register``. |
| 5 |
Do not enable "Client Side Flow". For local development you can simply use |
| 6 |
"localhost" for the OAuth domain. |
| 7 |
|
| 8 |
As for all providers, provider specific data is stored in |
| 9 |
``SocialAccount.extra_data``. For Stack Exchange we need to choose what data to |
| 10 |
store there by choosing the Stack Exchange site (e.g. Stack Overflow, or |
| 11 |
Server Fault). This can be controlled by means of the ``SITE`` setting: |
| 12 |
|
| 13 |
.. code-block:: python |
| 14 |
|
| 15 |
SOCIALACCOUNT_PROVIDERS = { |
| 16 |
'stackexchange': { |
| 17 |
'SITE': 'stackoverflow', |
| 18 |
} |
| 19 |
} |