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
Benjamin Dauvergne
f1af12e6a1
tests: prevent "Database is locked" error during concurrency test ( fixes #19678 )
...
SQLite has a default timeout of 5 seconds, we augment it to 400 seconds. We also
replace our custom thread pool by the one provided by multiprocessing.
2018-03-12 14:27:27 +01:00
Benjamin Dauvergne
be791d54a8
set a default value for IDENTITY_PROVIDERS (( fixes #20221 )
2018-03-07 18:09:44 +01:00
Benjamin Dauvergne
b66a974922
do not raise ImproperlyConfigured on acces to app_settings.IDENTITY_PROVIDERS ( fixes #20221 )
2018-03-07 16:54:19 +01:00
Thomas NOËL
ac75dce84f
misc: disable AuthnRequest eo:next_url Extensions by default ( fixes #20229 )
2018-03-07 15:59:10 +01:00
Benjamin Dauvergne
a0d3e209c1
move tag Extensions in metadata template ( fixes #21923 )
...
Current template does not validate the SAML 2.0 metadata schema.
2018-02-16 09:54:22 +01:00
Benjamin Dauvergne
6c528dd2c3
Revert "support federation file loading ( #19396 )"
...
This reverts commit 63993e360c
.
2018-01-09 21:43:25 +01:00
Paul Marillonnet
63993e360c
support federation file loading ( #19396 )
2018-01-09 17:50:25 +01:00
Frédéric Péters
6d8e1ca517
tests: also run for django 1.11 ( #19659 )
2018-01-09 15:30:09 +01:00
Frédéric Péters
18eb3a8632
tests: remove django < 1.8 leftovers ( #19659 )
2018-01-09 15:30:00 +01:00
Benjamin Dauvergne
e55455d913
tox.ini: remove pytest-catchlog merged in the core of pytest ( fixes #21057 )
2018-01-09 14:29:10 +01:00
Frédéric Péters
05d566d152
limit to django 1.11
2017-12-30 11:53:31 +01:00
Frédéric Péters
343be40b6f
misc: update exception handling for Python 3 ( #20925 )
2017-12-30 11:53:31 +01:00
Frédéric Péters
078fcbd058
misc: update missing-django message for Python 3 ( #20925 )
2017-12-30 11:53:31 +01:00
Benjamin Dauvergne
688067f270
middleware: improve condition to automatically determine a common domain ( fixes #15548 )
...
It works if:
- HTTP Host is a domain name and not an IP address (IPv6 address will not pass
this test, they lack dots),
- domain contains at least three components.
2017-09-27 21:59:48 +02:00
Benjamin Dauvergne
cb3e18c8ba
tests: fix discovery service tests ( #19018 #19016 )
2017-09-27 21:59:15 +02:00
Benjamin Dauvergne
1703cc5da2
views: send entityID to discovery service ( fixes #19016 )
2017-09-27 14:28:44 +02:00
Benjamin Dauvergne
afe3d4a83f
views: add nodisco=1 to discovery service return url ( fixes #19018 )
2017-09-27 14:28:43 +02:00
Benjamin Dauvergne
850a192bcb
add a timeout to artifact resolve HTTP calls ( fixes #18098 )
2017-09-27 14:28:43 +02:00
Frédéric Péters
646132c661
misc: include target URL in AuthnRequest Extensions node ( #18452 )
2017-09-06 11:02:12 +02:00
Frédéric Péters
2c58690f73
misc: update setup.py to be compatible with python 3 ( #17958 )
2017-08-10 11:37:41 +02:00
Frédéric Péters
7767bc6740
use django facilities to get hostname from request ( #16525 )
...
This is required as SERVER_NAME may not be used in some uwsgi
configuration, and HTTP_HOST should be used instead.
| Nginx maps the $server_name variable to the first server_name you define.
| In your case you have two solutions: read HTTP_HOST instead of SERVER_NAME
| in your app or set SERVER_NAME to $http_host in uwsgi_params
-- http://lists.unbit.it/pipermail/uwsgi/2010-August/000571.html
The HttpRequest.get_host method handles those cases and more.
2017-08-10 11:35:21 +02:00
Frédéric Péters
4201b41cdb
misc: remove usage of urls.patterns for django 1.8 and later ( #15959 )
2017-04-23 21:08:15 +02:00
Benjamin Dauvergne
1d3efc23be
add a jenkins.sh
2017-03-22 23:54:51 +01:00
Benjamin Dauvergne
83388d396c
tests: replace unmaintained pytest-capturelog by its maintained fork pytest-catchlog
2017-03-22 23:06:50 +01:00
Benjamin Dauvergne
34b7b3f6c6
tox.ini: drop support for Django 1.7
2017-03-22 23:06:50 +01:00