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
6fd4e84a
Commit
6fd4e84a
authored
Oct 10, 2013
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move authentication to single chapter
parent
c6cd0281
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
71 additions
and
72 deletions
+71
-72
docs/admin/auth.rst
docs/admin/auth.rst
+71
-0
docs/admin/install.rst
docs/admin/install.rst
+0
-72
No files found.
docs/admin/auth.rst
View file @
6fd4e84a
...
@@ -10,6 +10,77 @@ confirming their email they can contribute.
...
@@ -10,6 +10,77 @@ confirming their email they can contribute.
You can also completely disable registration using :setting:`REGISTRATION_OPEN`.
You can also completely disable registration using :setting:`REGISTRATION_OPEN`.
Authentication
--------------
By default Weblate uses Django built-in user database. Thanks to this, you can
also import user database from other Django based projects (see
:ref:`pootle-migration`).
But Django can be configured to authenticate against other means as well.
Currently you have to register and confirm your email even when using other
authentication backend.
Third party authentication
++++++++++++++++++++++++++
Thanks python-social-auth, Weblate support authentication using many third
party services such as Facebook, GitHub, Google or Bitbucket.
Please check their documentation for generic configuration instructions:
http://psa.matiasaguirre.net/docs/configuration/django.html
.. note::
By default, Weblate relies on authentication services provide validated
email address, in case some of services you want to use do not support
this, please remove ``social.pipeline.social_auth.associate_by_email`` from
``SOCIAL_AUTH_PIPELINE`` settings.
LDAP authentication
+++++++++++++++++++
LDAP authentication can be best achieved using `django-auth-ldap` package. You
can install it by usual means:
.. code-block:: sh
# Using PyPI
pip install django-auth-ldap
# Using apt-get
apt-get install python-django-auth-ldap
Once you have the package installed, you can hook it to Django authentication:
.. code-block:: python
# Add LDAP backed, keep Django one if you want to be able to login
# even without LDAP for admin account
AUTHENTICATION_BACKENDS = (
'django_auth_ldap.backend.LDAPBackend',
'django.contrib.auth.backends.ModelBackend',
)
# LDAP server address
AUTH_LDAP_SERVER_URI = 'ldaps://ldap.example.net'
# DN to use for authentication
AUTH_LDAP_USER_DN_TEMPLATE = 'cn=%(user)s,o=Example'
# Depending on your LDAP server, you might use different DN
# like:
# AUTH_LDAP_USER_DN_TEMPLATE = 'ou=users,dc=example,dc=com'
# List of attributes to import from LDAP on login
AUTH_LDAP_USER_ATTR_MAP = {
'first_name': 'givenName',
'last_name': 'sn',
'email': 'mail',
}
.. seealso:: http://pythonhosted.org/django-auth-ldap/
.. _privileges:
.. _privileges:
Access control
Access control
...
...
docs/admin/install.rst
View file @
6fd4e84a
...
@@ -464,78 +464,6 @@ Additionally you will have to adjust :file:`weblate/settings.py`::
...
@@ -464,78 +464,6 @@ Additionally you will have to adjust :file:`weblate/settings.py`::
.. note:: This is supported since Weblate 1.3.
.. note:: This is supported since Weblate 1.3.
Authentication
--------------
By default Weblate uses Django built-in user database. Thanks to this, you can
also import user database from other Django based projects (see
:ref:`pootle-migration`).
But Django can be configured to authenticate against other means as well.
Currently you have to register and confirm your email even when using other
authentication backend.
Third party authentication
++++++++++++++++++++++++++
Thanks python-social-auth, Weblate support authentication using many third
party services such as Facebook, GitHub, Google or Bitbucket.
Please check their documentation for generic configuration instructions:
http://psa.matiasaguirre.net/docs/configuration/django.html
.. note::
By default, Weblate relies on authentication services provide validated
email address, in case some of services you want to use do not support
this, please remove ``social.pipeline.social_auth.associate_by_email`` from
``SOCIAL_AUTH_PIPELINE`` settings.
LDAP authentication
+++++++++++++++++++
LDAP authentication can be best achieved using `django-auth-ldap` package. You
can install it by usual means:
.. code-block:: sh
# Using PyPI
pip install django-auth-ldap
# Using apt-get
apt-get install python-django-auth-ldap
Once you have the package installed, you can hook it to Django authentication:
.. code-block:: python
# Add LDAP backed, keep Django one if you want to be able to login
# even without LDAP for admin account
AUTHENTICATION_BACKENDS = (
'django_auth_ldap.backend.LDAPBackend',
'django.contrib.auth.backends.ModelBackend',
)
# LDAP server address
AUTH_LDAP_SERVER_URI = 'ldaps://ldap.example.net'
# DN to use for authentication
AUTH_LDAP_USER_DN_TEMPLATE = 'cn=%(user)s,o=Example'
# Depending on your LDAP server, you might use different DN
# like:
# AUTH_LDAP_USER_DN_TEMPLATE = 'ou=users,dc=example,dc=com'
# List of attributes to import from LDAP on login
AUTH_LDAP_USER_ATTR_MAP = {
'first_name': 'givenName',
'last_name': 'sn',
'email': 'mail',
}
.. seealso:: http://pythonhosted.org/django-auth-ldap/
.. _appliance:
.. _appliance:
Prebuilt appliance
Prebuilt appliance
...
...
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