Frédéric Péters
431577cc3e
misc: update setup.py with new django requirements
2019-09-22 09:56:26 +02:00
Frédéric Péters
81352a1084
tox: run tests against django 2.2 ( #36330 )
2019-09-22 08:33:10 +02:00
Frédéric Péters
785969fc11
misc: add support for new django.urls module ( #36330 )
2019-09-22 08:33:08 +02:00
Frédéric Péters
1aea1cbe00
misc: add on_delete parameter to foreign keys ( #36330 )
2019-09-22 08:33:04 +02:00
Benjamin Dauvergne
80074ea201
middleware: prevent passive authentication on ajax requests ( #34781 )
2019-07-12 13:41:49 +02:00
Benjamin Dauvergne
ab92ca9a07
use unicode_literals ( #34008 )
2019-07-02 17:44:03 +02:00
Benjamin Dauvergne
da94b2c52c
adapters: add missing argument to log ( #34333 )
2019-06-25 21:53:53 +02:00
Frédéric Péters
6284da2ae6
misc: catch all unicode exceptions when checking next_url ( #33083 )
2019-06-25 17:46:08 +02:00
Frédéric Péters
40674e4d1a
do not warn about stale cache if not cache timeout is defined ( #34319 )
2019-06-25 17:46:08 +02:00
Benjamin Dauvergne
39e2e7e5ac
update and cache metadata from URL and path ( #10196 )
2019-06-18 00:53:01 +02:00
Benjamin Dauvergne
83a09d874e
code style ( #10196 )
2019-06-18 00:53:01 +02:00
Benjamin Dauvergne
968aa07faf
really retrieve XML encoding ( #10196 )
2019-06-18 00:53:01 +02:00
Benjamin Dauvergne
81ab8f4c9e
adapters: abstract user queryset ( #33739 )
2019-06-11 16:46:02 +02:00
Benjamin Dauvergne
31015e6580
add user lookup by attributes ( #33739 )
2019-06-11 16:46:02 +02:00
Benjamin Dauvergne
f2908b2ef3
adapters: factorize user linking ( #33739 )
2019-06-11 16:46:02 +02:00
Benjamin Dauvergne
e0c1f5b43c
simplify workflow in DefaultAdapter.lookup_user() ( #33739 )
2019-06-11 16:46:02 +02:00
Benjamin Dauvergne
e1fa70d28d
add setting MELLON_SIGNATURE_METHOD ( #32008 )
...
It defaults to RSA-SHA256 as RSA-SHA1 which is the default in Lasso is
deprecated.
2019-04-19 11:09:11 +02:00
Christophe Siraut
b2a1da8d1b
debian: bump debhelper compatibility level ( #32260 )
2019-04-16 14:32:24 +02:00
Benjamin Dauvergne
c5da4db69c
tests: use RSA-SHA256 certificates ( fixes #31963 )
2019-04-03 12:41:32 +02:00
Benjamin Dauvergne
b640f5b334
tests: test failed request path with artifact ( #31690 )
2019-03-25 15:24:13 +01:00
Frédéric Péters
99a60c1d88
update sso_failure call to new method signature ( #31690 )
2019-03-25 14:03:04 +01:00
Benjamin Dauvergne
ca6ce92781
views: fix discovery URL building ( #31581 )
2019-03-20 14:28:05 +01:00
Benjamin Dauvergne
d0e6f46f9b
views: keep next URL on disco requests ( fixes #31043 )
2019-03-19 23:43:37 +01:00
Benjamin Dauvergne
b3e1b9c533
views: add new setting LOGIN_HINTS ( fixes #30966 )
...
You can set MELLON_LOGIN_HINTS = ['backoffice'] to get a node
eo:login-hint set to "backoffice" in AuthnRequest when next_url for the
login view is among /manage/, /admin/ or /manager/.
Another value is 'always_backoffice' which always set the 'backoffice'
login_hint.
2019-03-07 23:12:56 +01:00
Benjamin Dauvergne
b7712516ee
views: PEP8ness ( #30966 )
2019-03-07 23:12:07 +01:00
Benjamin Dauvergne
f2e05b84ae
prevent redirection loop on artifact resolution errors ( fixes #14810 )
...
Signature of method sso_failure() is changed to match the name name of
the context variable in template mellon/authentication_failed.html
(idp_message => reason).
2019-03-02 16:42:46 +01:00
Benjamin Dauvergne
91f726ed4f
use Jenkinsfile ( #14810 )
...
- Copied from authentic2-auth-kerberos
- Removal of .coveragerc as it prevented coverage from working, dunno
why.
2019-03-02 15:53:56 +01:00
Christophe Siraut
803907f00f
debian: add python3-django-mellon; use pybuild ( #30494 )
2019-02-14 13:04:04 +01:00
Benjamin Dauvergne
3d449b7928
backends: add request argument to authenticate ( fixes #30541 )
...
For Django 1.11 compatibility.
2019-02-12 09:45:53 +01:00
Benjamin Dauvergne
b0ddc85486
backends: PEP8ness, copyright ( #30451 )
2019-02-12 09:45:53 +01:00
Frédéric Péters
c3cf170526
tox: limit pytest version to a version compatible with pytest-cov
2019-01-06 17:59:13 +01:00
Frédéric Péters
a1fa7d36df
don't cache local metadata anymore ( #13881 )
2018-09-05 17:09:31 +02:00
Frédéric Péters
d026ce40e1
don't use RelayState as continuation URL in case of errors ( #25522 )
2018-07-29 23:12:10 +02:00
Paul Marillonnet
349a4ec3bc
skip test if number of concurrent connections above default pg limit ( #25252 )
2018-07-18 18:07:24 +02:00
Paul Marillonnet
c5fddd13cd
tests: adapt to lasso PEM-formatting deprecation ( #24531 )
2018-07-18 18:06:18 +02:00
Benjamin Dauvergne
d4d0b85944
use good API from lasso to set Extensions node content ( #23003 )
...
- use extensions.any tuple to set the content of the Extensions node
- add tests for the presence of the eo:next_url node when
ADD_AUTHNREQUEST_NEXT_URL_EXTENSION is used
- add tests for next_url propagation through the RelayState value
2018-06-06 11:05:59 +02:00
Frédéric Péters
edb09ed8fd
use force_text for python2/3 compatibility ( #24139 )
2018-05-29 12:21:13 +02:00
Emmanuel Cazenave
9498e35cf4
pin django-webtest ( #23603 )
2018-05-04 15:38:59 +02:00
Frédéric Péters
bd6a6b42d8
tox: let getlasso3 work with all python3 versions
2018-04-05 15:03:19 +02:00
Frédéric Péters
250476911c
tox: also run tests against python 3
2018-04-05 14:38:49 +02:00
Frédéric Péters
8252e948e7
tests: adapt to python 3
2018-04-05 14:38:49 +02:00
Frédéric Péters
1e02302fd9
python3: get metadata from URL as a string
2018-04-05 14:38:36 +02:00
Frédéric Péters
ffadd1a618
python3: use urlparse compatibility module in tests
2018-04-05 14:31:45 +02:00
Frédéric Péters
163639501c
python3: always use %s to get user representation in logs
2018-04-05 14:31:45 +02:00
Frédéric Péters
24e85adc5a
python3: handle differences in lasso/py2/py3 encodings
2018-04-05 14:31:45 +02:00
Frédéric Péters
401b65f8b3
python3: adjust unicode usage
2018-04-05 14:29:55 +02:00
Frédéric Péters
239f39c097
python3: add detection of xml encoding
2018-04-05 14:25:54 +02:00
Frédéric Péters
7df3a6f5e0
python3: don't use iteritems
2018-04-05 14:25:54 +02:00
Frédéric Péters
d342971a45
python3: use open() to open files
2018-04-05 14:25:54 +02:00
Frédéric Péters
7ac7c48f67
tests: don't use a leading 0 in numbers
2018-03-27 09:05:39 +02:00