Commit Graph

291 Commits

Author SHA1 Message Date
Benjamin Dauvergne 603e20b5cf Jenkinsfile: use mergeJunitResults() (#38300) 2019-12-09 11:47:14 +01:00
Benjamin Dauvergne c8ec49431b misc: update merge-junit-results.py 2019-12-07 11:07:43 +01:00
Benjamin Dauvergne 09c32c83d5 misc: make login_hint works without next parameter (#38163) 2019-12-03 19:53:37 +01:00
Benjamin Dauvergne 9c26934e0e tox.ini: hide pytest warning about junit_family 2019-12-03 19:18:27 +01:00
Benjamin Dauvergne 63c7cdc151 tests: fix passive authentication tests (#30497)
Passive authentication only works for text/html requests by browsers
now.
2019-12-03 19:11:04 +01:00
Benjamin Dauvergne d5e5701899 add kwargs template_base to LoginView (#35083) 2019-12-02 17:47:13 +01:00
Benjamin Dauvergne b673b3a7fe do not crash if no idp is found (#19260)
Also improve logging of no idp situation in default backend.
2019-12-02 17:46:42 +01:00
Benjamin Dauvergne 42620b50a9 middleware: skip media/script HTTP requets (#30497) 2019-11-28 12:43:45 +01:00
Benjamin Dauvergne 555a251a0c release 1.9 2019-10-05 13:19:26 +02:00
Benjamin Dauvergne 7095b1368b use MiddlewareMixin on middleware (#36509)
Remove OPENED_SESSION_COOKIE_DOMAIN which has no use.
2019-10-04 17:45:25 +02:00
Benjamin Dauvergne 83abc78605 factorize compatibility layer (#36509) 2019-10-04 17:45:25 +02:00
Emmanuel Cazenave 453ee8a813 jenkins: use ci@entrouvert.org for notifications 2019-10-02 13:50:43 +02:00
Frédéric Péters 325ec83617 build: adapt merge-junit-results to latest pytest/3 <testsuites> element 2019-10-02 08:29:33 +02:00
Frédéric Péters 487229c96b tox: allow latest pytest 2019-10-02 08:29:33 +02:00
Benjamin Dauvergne a4a659d04e make DiscoveryResponse optional in metadata (#15260) 2019-10-01 12:31:52 +02:00
Frédéric Péters 3557720aa6 misc: limit setup_requires to django 1.11, to still be ok with py2 2019-09-22 14:45:51 +02:00
Frédéric Péters fd409d6d3c backends: accept being called with None as saml_attributes (#36330) 2019-09-22 12:30:41 +02:00
Frédéric Péters 6bd7ca5277 misc: mark MELLON_GROUP_ATTRIBUTE as code block in README 2019-09-22 11:09:35 +02:00
Frédéric Péters 54a0d93c76 misc: remove unmaintained "changes" section of README 2019-09-22 11:08:20 +02:00
Frédéric Péters 11c2770bd1 misc: fix reStructuredText syntax of README 2019-09-22 11:06:54 +02:00
Frédéric Péters b34e0de5dd misc: lower django version to 1.7 in setup.py, to build on jessie 2019-09-22 10:49:15 +02:00
Frédéric Péters e3a6586a00 misc: update authenticate() for compatibility from 1.8 to 2.2 (#36330) 2019-09-22 10:34:13 +02:00
Frédéric Péters fca5d01942 tox: use newer django-webtest for newer django versions 2019-09-22 10:19:42 +02:00
Frédéric Péters 389e6d790b tests: update for compatibility with django 2.2 (#36330) 2019-09-22 10:10:15 +02:00
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