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
0d2e443f
Commit
0d2e443f
authored
Oct 10, 2013
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include GitHub example (issue #170)
parent
6fd4e84a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
4 deletions
+30
-4
docs/admin/auth.rst
docs/admin/auth.rst
+30
-4
No files found.
docs/admin/auth.rst
View file @
0d2e443f
...
...
@@ -6,12 +6,14 @@ User registration
The default setup for Weblate is to use python-social-auth for handling new
users. This allows them to register using form on the website and after
confirming their email they can contribute.
confirming their email they can contribute or by using some third party service
to authenticate.
You can also completely disable registration using :setting:`REGISTRATION_OPEN`.
You can also completely disable new users registration using
:setting:`REGISTRATION_OPEN`.
Authentication
--------------
Authentication
backends
--------------
---------
By default Weblate uses Django built-in user database. Thanks to this, you can
also import user database from other Django based projects (see
...
...
@@ -38,6 +40,30 @@ http://psa.matiasaguirre.net/docs/configuration/django.html
this, please remove ``social.pipeline.social_auth.associate_by_email`` from
``SOCIAL_AUTH_PIPELINE`` settings.
Enabling individual backends is quite easy, it's just matter of adding entry to
``AUTHENTICATION_BACKENDS`` setting and possibly adding keys needed for given
authentication. Please note that some backends do not provide user email by
default, you have to request it explicitely, otherwise Weblate will not be able
to properly credit users contributions.
For example, enabling authentication against GitHub:
.. code-block:: python
# Authentication configuration
AUTHENTICATION_BACKENDS = (
'social.backends.github.GithubOAuth2',
'social.backends.email.EmailAuth',
'accounts.auth.AnonymousUserBackend',
)
# Social auth backends setup
SOCIAL_AUTH_GITHUB_KEY = 'gihub api key'
SOCIAL_AUTH_GITHUB_SECRET = 'github api secret'
SOCIAL_AUTH_GITHUB_SCOPE = ['user:email']
.. seealso:: http://psa.matiasaguirre.net/docs/backends/index.html
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