Commit Graph

51 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 bd729ae111 debian: change dependency on pykerberos package for wheezy 2016-03-04 18:14:52 +01:00
Benjamin Dauvergne 1d37f0feef MANIFEST.in: add missing files in source dist 2016-03-04 18:14:52 +01:00
Benjamin Dauvergne 7c6ca6a068 debian: add python dependencies to control 2016-03-04 18:14:52 +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 43077edadc tox.ini: build package from git repository 2016-02-24 17:10:31 +01:00
Benjamin Dauvergne 3203313b72 tox.ini: remove pip install authentic2 2016-02-24 16:55:36 +01:00
Benjamin Dauvergne fed6c56c46 add tests 2016-02-24 11:06:16 +01:00
Benjamin Dauvergne 2c0c240469 setup.py: pep8ness, cleaning 2016-02-24 11:06:12 +01:00
Benjamin Dauvergne 95fcddbf9d tox.ini: adopt common targets 2016-02-24 11:06:12 +01:00
Benjamin Dauvergne 7b8555ce60 tox.ini: add pytest-capturelog to deps 2016-02-10 09:46:15 +01:00
Benjamin Dauvergne 8485ee1978 tox.ini: add {posargs} to command 2016-02-10 09:46:06 +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 ba8ee7abdc starts tests 2016-02-09 18:09:18 +01:00
Benjamin Dauvergne 710058d8ec setup.py: revert adding + in front of git version, eobuilder does not like it 2016-02-09 18:07:45 +01:00
Benjamin Dauvergne 247af94e99 improve error reporting 2016-02-09 18:07:45 +01:00
Benjamin Dauvergne 3f36a6cd89 debian: do not use distutils packaging, add pydist-overrides 2016-02-09 16:21:23 +01:00
Benjamin Dauvergne 0f2284e91d setup.py: replace .g by +g in versions to comply with PEP0440 2016-02-09 16:19:13 +01:00
Benjamin Dauvergne c312c761e3 setup.py: fix missing imports 2016-02-09 11:56:28 +01:00
Benjamin Dauvergne 35f773f084 setup.py: update get_version 2016-02-09 11:55:02 +01:00
Benjamin Dauvergne c6a945bb5b kerberos has been renamed pykerberos 2016-02-09 11:53:22 +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 a208909414 Add 'debian/' from commit '23f724de268a70831d8390dfbfea3abb6f988b1c'
git-subtree-dir: debian
git-subtree-mainline: e975989af3
git-subtree-split: 23f724de26
2015-04-02 19:29:24 +02:00
Benjamin Dauvergne e975989af3 Improve error reporting, prevent tracebacks on normal events 2015-01-05 11:02:47 +01:00
Benjamin Dauvergne fc7c1855f7 Add rule to install static files 2014-09-07 01:27:05 +02:00
Benjamin Dauvergne 23f724de26 first commit 2014-09-05 19:28:04 +02: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 2fd265c2ff Describe autologin implementation in the README 2014-08-25 18:52:29 +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 df4113c0af Add caution block to the README to inform about limitation on HTTP domain name and kerberos principal name building by browsers 2014-08-21 11:14:22 +02:00
Benjamin Dauvergne 4d9f518c0f Fix module authentication backend and urls module paths 2014-08-20 15:36:22 +02:00
Benjamin Dauvergne 05fa7aa891 bump release to 1.1.0 2014-08-12 11:53:19 +02:00
Benjamin Dauvergne 5a52caaf6c sample: add default config.py and a READMe 2014-08-12 11:51:23 +02:00
Benjamin Dauvergne ffa6112042 improve sample application, add more templates
- add logout link
- header line with username
- use JS autologin
2014-08-12 11:49:40 +02:00
Benjamin Dauvergne 2879803273 fix bad module path in sample application 2014-08-12 11:49:35 +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 76998bd570 README: add section about the sample Django project 2014-08-09 04:28:51 +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