Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
9b73cc22
Commit
9b73cc22
authored
Jun 11, 2015
by
Weblate
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
5ae01260
556c44f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
1 deletion
+50
-1
docs/admin/auth.rst
docs/admin/auth.rst
+50
-1
No files found.
docs/admin/auth.rst
View file @
9b73cc22
...
...
@@ -48,7 +48,27 @@ authentication. Please note that some backends do not provide user email by
default, you have to request it explicitly, otherwise Weblate will not be able
to properly credit users contributions.
For example, enabling authentication against GitHub:
OpenID authentication
~~~~~~~~~~~~~~~~~~~~~
For OpenID based services it's usually just matter of enabling them. Following
section enables OpenID authentication for OpenSUSE, Fedora and Ubuntu:
.. code-block:: python
# Authentication configuration
AUTHENTICATION_BACKENDS = (
'social.backends.email.EmailAuth',
'social.backends.suse.OpenSUSEOpenId',
'social.backends.ubuntu.UbuntuOpenId',
'social.backends.fedora.FedoraOpenId',
'weblate.accounts.auth.WeblateUserBackend',
)
GitHub authentication
~~~~~~~~~~~~~~~~~~~~~
You need to register application on GitHub and then tell Weblate all the secrets:
.. code-block:: python
...
...
@@ -76,9 +96,38 @@ The redirect URL is ``https://WEBLATE SERVER/accounts/complete/google-oauth2/``
.. 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_SECRET = 'Client secret'
Facebook OAuth2
~~~~~~~~~~~~~~~
As usual with OAuth2 services, you need to register your application with
Facebook. Once this is done, you can configure Weblate to use it:
.. code-block:: python
# Authentication configuration
AUTHENTICATION_BACKENDS = (
'social.backends.facebook.FacebookOAuth2',
'social.backends.email.EmailAuth',
'weblate.accounts.auth.WeblateUserBackend',
)
# Social auth backends setup
SOCIAL_AUTH_FACEBOOK_KEY = 'key'
SOCIAL_AUTH_FACEBOOK_SECRET = 'secret'
SOCIAL_AUTH_FACEBOOK_SCOPE = ['email', 'public_profile']
LDAP authentication
+++++++++++++++++++
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment