Commit Graph

24 Commits

Author SHA1 Message Date
Benjamin Dauvergne e8a1a7221c add Python3 and django 1.11 support (fixes #30321)
Also remove the sample application.
2019-02-05 09:38:49 +01:00
Benjamin Dauvergne 61a8167e9e cleaning (#30321)
PEP8ness, add copyright notices, remove explicit __version__ in
__init__.py (true version is distributed through PKG_INFO).
2019-02-02 10:33:28 +01:00
Benjamin Dauvergne 0ad8b9cb42 fix undefined reference 2016-03-04 20:29:53 +01:00
Benjamin Dauvergne df069e848f views: return true not True 2016-02-25 09:42:49 +01:00
Benjamin Dauvergne 1dcf587690 views: simplify NegotiateView.principal_valid 2016-02-25 09:36:58 +01:00
Benjamin Dauvergne 582a2eaa76 state that problem is related to the keytab when authGSSServerInit fails 2016-02-10 09:41:56 +01:00
Benjamin Dauvergne 247af94e99 improve error reporting 2016-02-09 18:07:45 +01:00
Benjamin Dauvergne 3e127c2d17 templates: add an indirection so that user can overwrite location of base.html 2015-10-31 12:01:26 +01:00
Benjamin Dauvergne e975989af3 Improve error reporting, prevent tracebacks on normal events 2015-01-05 11:02:47 +01:00
Benjamin Dauvergne f53c382b71 Make all templates overridable 2014-08-25 23:56:01 +02:00
Benjamin Dauvergne d89e40a1ac New release 1.2.1 2014-08-25 22:57:09 +02:00
Benjamin Dauvergne 14a078ac22 New release 1.2.0 2014-08-25 22:55:40 +02:00
Benjamin Dauvergne ae7481f5ae Refactor NegotiateView.principal_valid() into two other methods, user_found() and user_not_found()
It allows more fine grained behaviour override in case login is
successful.
2014-08-25 18:42:17 +02:00
Benjamin Dauvergne 05fa7aa891 bump release to 1.1.0 2014-08-12 11:53:19 +02:00
Benjamin Dauvergne f4312adcd6 template include and js code for implementing Kerberos autologin
To get autologin on a public view just do

 {% include 'django_kerberos/autologin.html' %}
2014-08-12 11:49:35 +02:00
Benjamin Dauvergne c29ea2948d refactoring: rewrite login view as a cbv for better reusability
HTTP Negotiate workflow is now separated from the Django authentication
workflow so that you can inherit from the new NegotiateView and for
example implement a view which link a currently logged user to a
Kerberos identity or which allow to choose among a list of users linked
to a Kerberos identity.

An ajax mode was also added: if the view is called using XMLHttpRequest
and there is no 'next' param the view return JSON content 'true' if
authentication succeed, 'false' otherwise.
2014-08-12 11:06:21 +02:00
Benjamin Dauvergne c76e9e24e2 simplification: remove setting KERBEROS_KEYTAB
The keytab file must be passed using the usual KRB5_KTNAME environment
variable to the Django process, no need to use a custom setting for
that. For memory syntax is KRB5_KTNAME=FILE:/path/to/keytab
2014-08-12 11:06:21 +02:00
Benjamin Dauvergne 8ea791cf98 refactoring: improve reusability by encapsulating access to app_settings in methods
If you want to inherit from our base backend or password hasher you
don't need to depend upon our way of handling settings.
2014-08-12 11:06:21 +02:00
Benjamin Dauvergne 2cb06046b8 add new login/password backend using Kerberos, rename KERBEROS_HASHER_SERVICE_PRINCIPAL to KERBEROS_SERVICE_PRINCIPAL 2014-08-12 11:04:00 +02:00
Benjamin Dauvergne 7896944e30 refactorize to improve reusability of the Kerberos backend 2014-08-10 01:24:32 +02:00
Benjamin Dauvergne 823cdcb9ad new pseudo password hasher verifying passwords using Kerberos 2014-08-10 01:24:29 +02:00
Benjamin Dauvergne 1fcda4c815 fix restructured text in README 2014-08-09 03:54:42 +02:00
Benjamin Dauvergne b1d6a0b129 add description 2014-08-09 03:52:05 +02:00
Benjamin Dauvergne cb05f9eb2a first commit 2014-08-09 03:48:24 +02:00