Frédéric Péters
d342971a45
python3: use open() to open files
2018-04-05 14:25:54 +02: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
343be40b6f
misc: update exception handling for Python 3 ( #20925 )
2017-12-30 11:53:31 +01:00
Frédéric Péters
d89ecdfbce
allow an adapter to adapt auth.login() ( #14476 )
2017-01-02 13:41:41 +01:00
Benjamin Dauvergne
aaedfde786
views: gracefully handle logout errors ( fixes #11449 )
2016-06-22 11:06:46 +02:00
Benjamin Dauvergne
69a18d7272
utils: fix handling of multiple private keys ( fixes #11475 )
2016-06-22 11:06:33 +02:00
Frédéric Péters
0b141113d7
make login/logout URL names into settings ( #10867 )
2016-05-10 09:07:02 +02:00
Benjamin Dauvergne
74b61de641
replace dateutil by isodate ( #10196 )
...
isodate has better support for the full ISO8601 specification.
2016-04-11 19:14:07 +02:00
Benjamin Dauvergne
bfa84bb6ba
always consider relative URLs as being of the same origin ( fixes #10371 )
2016-03-22 15:13:48 +01:00
Benjamin Dauvergne
eb89a86ef3
add DiscoveryResponse endpoint to metadata ( fixes #10197 )
2016-03-04 11:05:01 +01:00
Benjamin Dauvergne
3d91d40cb2
django 1.9 adaptations
...
- django.utils.same_origin was removed
- HttpRequest.REQUEST was removed
- settings.USE_TZ is True by default
- get_default_timezone() is now wrapped by an lrucache(), when modifying
settings.TIME_ZONE we must also clear the cache.
2016-02-26 21:35:21 +01:00
Benjamin Dauvergne
8961a743f5
move idp settings building in adapters
2016-02-26 18:09:27 +01:00
Benjamin Dauvergne
33d305f7a7
add support for Organization and ContactPerson elements in metadata ( fixes #6656 )
2016-02-26 18:09:27 +01:00
Benjamin Dauvergne
26ffe9af97
utils: fix iso8601_to_datetime, make_naive amd make_aware need a timezone parameter
2016-02-26 18:09:27 +01:00
Benjamin Dauvergne
4320f4fa78
utils: fix flatten_datetime, isoformat() already add a timezone if needed
2016-02-26 18:09:27 +01:00
Benjamin Dauvergne
75382c9ab1
pep8ness
2016-02-26 18:09:27 +01:00
Benjamin Dauvergne
bd216c7ab7
store cached metadata in settings
2016-02-26 18:09:27 +01:00
Benjamin Dauvergne
4f77ee0e24
do not pass strings contening null characters to Lasso, return 400 or ignore ( fixes #8939 )
2016-02-26 18:09:17 +01:00
Benjamin Dauvergne
3ca64e7eaf
report lasso error at debug level
2016-02-12 19:44:24 +01:00
Benjamin Dauvergne
a597839d14
log errors when loading IdP metadata instead of throwing a traceback ( fixes #9745 )
2016-02-12 19:44:19 +01:00
Benjamin Dauvergne
9143056569
use dateutil to parse datetime strings ( #9640 )
2016-01-15 12:26:58 +01:00
Benjamin Dauvergne
f45bb8b2d0
utils: return naive datetime if USE_TZ=False ( fixes #9521 )
2016-01-06 09:54:52 +01:00
Benjamin Dauvergne
dc1e4e56ea
do not flatten attributes inplace, and convert expiry to seconds ( fixes #9359 )
...
Original datetime must be kept for setting the expiry, but expiry using datetime
is not supported when using JSON sessions, so we convert it to seconds expiry
before setting it.
We also make iso8601 parsed datetime timezone aware, to match with other
datetimes in Django.
2015-12-16 18:06:07 +01:00
Serghei Mihai
c3481b570c
use requests to retreive metadata ( #7785 )
2015-07-06 12:01:58 +02:00
Benjamin Dauvergne
d064fad15b
Add debug log of rebuilt session dumps in create_logout() ( #7680 )
2015-06-25 11:25:17 +02:00
Benjamin Dauvergne
d5b8ec81a9
app_settings,views: make the default assertion consumer binding customizable, and restore POST as the default
...
And restore default to POST.
fixes #7406
2015-05-29 11:53:30 +02:00
Benjamin Dauvergne
12214b8cb5
utils: add a default return value to utils.get_idp()
...
refs #7271
2015-05-18 16:16:22 +02:00
Benjamin Dauvergne
bb08da0f9e
Support encryption
2015-03-26 16:44:14 +01:00
Benjamin Dauvergne
8f8f47b1a9
Allow getting metadata of IdP by doing an HTTP GET
2015-02-13 18:23:28 +01:00
Benjamin Dauvergne
9525e29b03
Always use adapters to get to IdP settings
2015-02-13 18:10:51 +01:00
Benjamin Dauvergne
4112e4b153
Clean PEM file before including them in the metadata
2014-11-17 16:32:29 +01:00
Benjamin Dauvergne
7503611a5f
Fix use of getattr
2014-09-08 09:13:10 +02:00
Benjamin Dauvergne
3e0c84f5f9
Flatten adapter list as tuple before concatenation
2014-09-05 16:13:16 +02:00
Benjamin Dauvergne
4fa1ef8625
utils: make get_idp() call adapters for getting idp configuration
2014-09-03 09:12:01 +02:00
Benjamin Dauvergne
c2b6c40bb1
utils: make idp parameter to get_adapters() optional, return concatenation of default an specific adapters
2014-09-03 09:12:01 +02:00
Benjamin Dauvergne
e5e9dcf86a
rename get_parameter() to get_setting()
2014-09-03 09:12:01 +02:00
Benjamin Dauvergne
587084f3cd
utils: add a default parameter to get_parameter
2014-09-03 09:12:01 +02:00
Benjamin Dauvergne
b4499d36e3
utils: remove debugging statement
2014-09-03 09:12:01 +02:00
Benjamin Dauvergne
0e3b0272f0
views,utils: keep the NameQualifier and SPNameQualifier attribut of NameID as they could be mandatory for some IdPs
2014-05-02 16:01:47 +02:00
Benjamin Dauvergne
565d7a07f2
add logout support
2014-05-02 11:48:05 +02:00
Benjamin Dauvergne
a1646489e2
first commit
2014-04-30 14:34:39 +02:00