Commit c03751e0 authored by Michal Čihař's avatar Michal Čihař

Complete Google example

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 8cb4fead
...@@ -96,6 +96,14 @@ The redirect URL is ``https://WEBLATE SERVER/accounts/complete/google-oauth2/`` ...@@ -96,6 +96,14 @@ The redirect URL is ``https://WEBLATE SERVER/accounts/complete/google-oauth2/``
.. code-block:: python .. code-block:: python
# Authentication configuration
AUTHENTICATION_BACKENDS = (
'social.backends.google.GoogleOAuth2',
'social.backends.email.EmailAuth',
'weblate.accounts.auth.WeblateUserBackend',
)
# Social auth backends setup
SOCIAL_AUTH_GOOGLE_OAUTH2_KEY = 'Client ID' SOCIAL_AUTH_GOOGLE_OAUTH2_KEY = 'Client ID'
SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET = 'Client secret' SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET = 'Client secret'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment