| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
This commit adds a simple NoOTPDevice model that currently serves
the purpose of responding successfully to any request. The login view
has been extended with proper OTP device setup and initial verification
support.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The auth is based on matching e-mail addresses from valid (and trusted)
certificates onto system users.
Whenever user requests SSL cert auth, he is redirected to a dedicated
vhost where the HTTP server requests the certificate. Once there,
ssl-auth view checks the verification result and obtains e-mail
addresses from the certificate. The e-mail addresses are compared to
system users and if a match occurs, an authentication token is created.
The ssl-auth view redirects back to login, passing either the token, or
error message. If a valid token is passed, ExternalBackend is used to
sucessfully authenticate the user. Otherwise, the error message is
printed alike regular login messages.
|
| |
|
|
|
|
|
| |
django-ldapdb is a library that uses LDAP server as Database backend.
This way we will be able to use ORM by mapping LDAP users to python objects
|
| |
|
|\
| |
| |
| |
| |
| | |
Conflicts:
okupy/accounts/urls.py
okupy/accounts/views.py
|
| |\ |
|
| | | |
|
| | | |
|
| |/
|/|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- Get rid of the forked django-auth-ldap, all the functionality is moved
to mockldap
- Get rid of ldapuser.py, it was used as a wrapper to ldap calls, in order
to determine whether we need as a wrapper to get either a python-ldap or
a mocked ldapobject. Mockldap handles this completely now, so the
ldapuser wrapper got useless.
- Use pure python-ldap calls instead of ldapuser ones in the view
- Adjust the tests to use mockldap instead of _LDAPConfig and MockLDAP
from django-auth-ldap
- Update the dependencies accordingly
|
| | |
|
| |
| |
| |
| |
| | |
Modelines enforce project-specific indent, help vim recognize django
templates and provide encoding information for Python.
|
| | |
|
|\ \
| | |
| | | |
Code cleanup
|
| |/
| |
| |
| |
| |
| | |
So far, there's nothing on identity.gentoo.org and the URI in setup.py
should point to a kind of homepage where sources, bug tracker
and downloads are available.
|
|/ |
|
| |
|
|
|
|
|
|
| |
- Add more static files in MANIFEST.in and setup.py
- Categorize the dependencies in setup.py
- Remove non-hard dependencies from requirements.txt
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
- Also add the needed models and forms
- Print the error messages properly in the signup and index templates
- Add their tests and a fixture
- Enable signup and activate views in the urls.py and INSTALLED_APPS
- This commit also introduces depedency to passlib. We use
passlib.hash.ldap_md5_crypt to create the hash and verify the password.
We use the same lib in the tests, thus the passwords in
example_directory in tests.py have been converted from plaintext to md5 hash.
|
| |
|
| |
|
| |
|
|
|