Commit Graph

761 Commits

Author SHA1 Message Date
Christophe Maudoux
4a0b092e7c make json 2020-01-15 22:12:02 +01:00
Christophe Maudoux
583bbbe285 Append CSP frame-ancestors option & Improve unit test (#2068) 2020-01-15 16:09:57 +01:00
Christophe Maudoux
d7cee58edf Improve log 2020-01-08 23:05:43 +01:00
Christophe Maudoux
94cefa3ef4 Typo 2020-01-07 22:38:08 +01:00
Xavier Guimard
6f3bdfd9de More security in handler in-memory session 2019-12-30 14:49:29 +01:00
Christophe Maudoux
9a86559847 Typo (#2055) 2019-12-27 21:23:28 +01:00
Xavier Guimard
8d5a29075b Another bad export 2019-12-25 13:17:43 +01:00
Christophe Maudoux
2954ea2abc Disable compactConf by default & Update unit tests (#2046) 2019-12-22 13:06:10 +01:00
Clément OUDOT
7d13400be4 Update version in modules 2019-12-21 16:33:39 +01:00
Clément OUDOT
983af4dec1 make json (#1605) 2019-12-21 16:13:32 +01:00
Xavier Guimard
85728c8870 New skip() function in rules 2019-12-10 16:06:17 +01:00
Christophe Maudoux
46d96b1a38 Modify logger (#2030) 2019-11-25 22:55:06 +01:00
Christophe Maudoux
d20c5efb35 Send service headers to protected applications & Improve unit test (#2030) 2019-11-25 22:28:59 +01:00
Christophe Maudoux
fc2e65be6b Avoid warning (#2011) 2019-11-22 21:42:28 +01:00
Maxime Besson
f020a27a2c Add function to test if an element is in a list (#2011) 2019-11-22 18:49:02 +01:00
Maxime Besson
bedcf20806 Change portal error code on 2F failure (#2008) 2019-11-15 11:19:08 +01:00
Maxime Besson
d66d24c8d5 Update OAuth2 handler to recognize refreshed tokens (#813) 2019-11-04 10:44:54 +01:00
Christophe Maudoux
1d2bbab057 make json 2019-10-30 18:52:27 +01:00
Christophe Maudoux
21b1e75a4d Merge branch 'v2.0' into 1988 2019-10-30 16:35:44 +01:00
Xavier
42d1028040 Fix SecureToken for recent Perl 2019-10-30 07:28:16 +01:00
Christophe Maudoux
4f8d089ec6 Improve debug logs (#1988) 2019-10-29 20:09:11 +01:00
Christophe Maudoux
73bd5cdf72 Typo 2019-10-27 23:30:33 +01:00
Christophe Maudoux
601ac0d20d Fix log msg (#1988) 2019-10-27 21:05:54 +01:00
Christophe Maudoux
04428af556 Append url AuthnLevel option (#1988) 2019-10-27 18:38:39 +01:00
Christophe Maudoux
ef08306906 Merge branch 'v2.0' into 1988 2019-10-26 22:58:37 +02:00
Christophe Maudoux
eee9ab8305 Fix regex 2019-10-26 22:37:56 +02:00
Christophe Maudoux
5eaf00601e WIP 2019-10-26 21:40:19 +02:00
Christophe Maudoux
8903874b98 WIP - Append option & update langs 2019-10-26 12:43:27 +02:00
Maxime Besson
55f4007870 Clear location rules array on reload (#1966) 2019-10-18 15:54:48 +02:00
Christophe Maudoux
ef5f852297 Improve debug log & typo 2019-10-15 17:36:09 +02:00
Christophe Maudoux
9c823b2e7f Import ServiceTokenTTL into tsv (#1974) 2019-10-11 22:12:55 +02:00
Christophe Maudoux
138cfe6edb Append DecryptValue plugin (#1956) 2019-09-30 22:29:49 +02:00
Christophe Maudoux
a219a51e1c Revert "Make manifest"
This reverts commit c00110ed01.
2019-09-30 22:28:55 +02:00
Christophe Maudoux
c00110ed01 Make manifest 2019-09-30 22:26:55 +02:00
Christophe Maudoux
9102cc2acc Typo 2019-09-29 12:50:46 +02:00
Christophe Maudoux
abf27ad7ac Fix secureToken with PSGI servers 2019-09-28 19:45:07 +02:00
Christophe Maudoux
200546b2e4 Fix logger 2019-09-28 19:18:53 +02:00
Christophe Maudoux
6329887871 Fix returned values - Propage #1954 2019-09-27 23:19:21 +02:00
Christophe Maudoux
0f32b7db82 Set version & tidy (#1954) 2019-09-27 22:29:06 +02:00
Christophe Maudoux
9d245fe819 Fix namespace (#1954) 2019-09-27 22:09:04 +02:00
Christophe Maudoux
1d0a79ba5d Fix returned values (#1954) 2019-09-27 21:46:18 +02:00
Christophe Maudoux
19e7f68640 Harmonize 2019-09-22 19:45:39 +02:00
Christophe Maudoux
5d9fc02205 Typo & logger 2019-09-20 22:47:48 +02:00
Maxime Besson
bdd2fed3ae Fix UTF-8 values in HTTP headers (#1922) 2019-09-17 23:11:04 +02:00
Maxime Besson
98f55fd384 Translate the error code displayed in debug logs 2019-09-17 20:17:57 +02:00
Maxime Besson
e281ad7cc3 Add support for CORS preflight (#1765) 2019-09-16 16:55:15 +02:00
Christophe Maudoux
c446f194eb Import custom functions into Conf Jail (#1929) 2019-09-13 10:03:28 +02:00
Xavier
e50e7d09d1 Update version of (really) modified files 2019-09-12 21:56:49 +02:00
Christophe Maudoux
db591a789f Typo 2019-09-11 22:59:43 +02:00
Christophe Maudoux
9f6e269c39 Use sha256 instead of md5 (#1925) 2019-09-10 22:30:03 +02:00
Christophe Maudoux
86daaf54f6 Append parameter & update langs (#1925) 2019-09-10 10:15:17 +02:00
Christophe Maudoux
c1af9e49f7 WIP - Append extractFormInfo step & AuthChoiceParam for AuthChoice (#1925) 2019-09-09 23:23:52 +02:00
Christophe Maudoux
14d82c4a79 Fix ua options (#1925) 2019-09-09 22:34:44 +02:00
Xavier
a04bbf15b7 Add timeout for configuration load (#1908) 2019-09-02 23:01:09 +02:00
Christophe Maudoux
05271f9b76 Fix zero and empty header values (#1901) 2019-08-31 22:15:00 +02:00
Clément OUDOT
fc35c17383 Fix call to logger (#1898) 2019-08-28 10:49:30 +02:00
Xavier
1f2f0240f0 Love Perl (#1863)
TIMTOWTDI
2019-08-28 00:36:18 +02:00
Christophe Maudoux
814590d40e Remove consumed headers & update unit test (#1863) 2019-08-27 21:15:19 +02:00
Clément OUDOT
22108c9c89 Fix call to add_output_filter (#1898) 2019-08-27 16:54:01 +02:00
Clément OUDOT
6a462bfed3 Fix call to logger (#1898) 2019-08-27 16:46:50 +02:00
Clément OUDOT
a7950a2613 Main run method also returns session (#1898) 2019-08-27 16:38:00 +02:00
Xavier Guimard
323d92fa1b Don't load Data::Dumper unless debug 2019-08-27 10:10:11 +02:00
Christophe Maudoux
323a6a027c Revert "Fix duplicate headers & update unit test (#1863)"
This reverts commit c7e7a2bd86.
2019-08-26 23:13:17 +02:00
Christophe Maudoux
c7e7a2bd86 Fix duplicate headers & update unit test (#1863) 2019-08-26 22:53:29 +02:00
Christophe Maudoux
21f3aa5501 Cleaning code 2019-08-26 22:53:29 +02:00
Xavier Guimard
9773b8967a Fix warning 2019-08-21 10:47:53 +02:00
Christophe Maudoux
96c5006d9a Fix wrapper (#1885) 2019-08-20 22:36:51 +02:00
Christophe Maudoux
4d583ceb9c Append a custom param to log (#1885) 2019-08-20 22:04:05 +02:00
Maxime Besson
c718e806ed Fix reporting of getMod errors 2019-08-19 17:22:14 +02:00
Christophe Maudoux
b1c637cfca Revert "Append a custom param to be logged (#1885)"
This reverts commit 1e838f0487
2019-08-16 15:28:47 +02:00
Christophe Maudoux
1e838f0487 Append a custom param to be logged (#1885) 2019-08-16 15:25:21 +02:00
Xavier
d2892a629b Revert "More simple regexp"
This reverts commit 2feb4a40aa.

Closes: #1876
2019-08-06 20:18:13 +02:00
Xavier Guimard
e7ec18a3b4 Update versions 2019-07-10 13:48:55 +02:00
Xavier Guimard
a1df1157f4 Render CDA compatible with Try (Fixes: #1849) 2019-07-10 10:40:32 +02:00
Xavier
7aad1563c0 Duplicate userLogger into logger->debug (#1842) 2019-07-04 21:22:06 +02:00
Xavier Guimard
c1137edba8 make tidy with perltidy-20181120 2019-07-02 20:03:40 +02:00
Xavier Guimard
43d5139040 Update versions 2019-06-28 17:04:14 +02:00
Xavier Guimard
44a6e25851 Improve cryptographic functions (#1823) 2019-06-28 10:30:37 +02:00
Xavier Guimard
65eaefa75f Tidy 2019-06-14 17:23:26 +02:00
Xavier
be908c84ad Optimize #1797 2019-06-12 22:55:25 +02:00
Christophe Maudoux
313fe39ed9 tidy 2019-06-12 22:43:16 +02:00
Christophe Maudoux
55e26efe4e Send service headers & improve unit test (#1797) 2019-06-12 22:33:18 +02:00
Christophe Maudoux
aa0b67f979 Send source VH header & Improve unit test (#1797) 2019-06-11 21:44:38 +02:00
Xavier
f4bca7430a Add addAuthRouteWithRedirect() method to Try (#1787) 2019-06-06 22:59:02 +02:00
Christophe Maudoux
455221781f Modify ServiceToken TTL option (#1773) 2019-05-27 23:07:18 +02:00
Christophe Maudoux
4d024cf41a Append ServiceToken test (#1773) 2019-05-27 22:42:02 +02:00
Christophe Maudoux
535ae3f7be Append ServiceToken TTL option (#1773) 2019-05-26 21:43:13 +02:00
Christophe Maudoux
74c5f50e89 Append option to modify ServiceToken TTL (#1773) 2019-05-26 18:24:08 +02:00
Christophe Maudoux
8cbe84c830 Typo & Version 2019-05-26 10:32:27 +02:00
Xavier
000db1536b Update versions 2019-05-11 17:37:56 +02:00
Christophe Maudoux
8fd06f1b6f Fix syntax error (#1703) 2019-05-10 17:20:59 +02:00
Xavier
24d7a880f5 Fix wantJSON (#1146) 2019-05-02 18:49:54 +02:00
Clément OUDOT
1e0c79944f Update session test for OAuth2 Handler (#1146) 2019-05-02 15:58:03 +02:00
Xavier
313ffa1e44 Add wantJSON() in Apache2::Request (#1146) 2019-05-01 08:29:47 +02:00
Xavier
e5f6112994 Add OAuth2 Wrapper for auto-protected apps 2019-04-23 06:25:53 +02:00
Clément OUDOT
aff2114fd7 Fix code for oidcStorage test in Handler (#1146) 2019-04-22 18:46:18 +02:00
Clément OUDOT
03d4855485 OAuth2 Handler (#1146) 2019-04-22 18:02:14 +02:00
Clément OUDOT
c07fb5bb65 Load oidcStorage in tsv (#1146) 2019-04-22 17:51:00 +02:00
Xavier Guimard
0be5510d05 Verify logLevel value (Closes: #1714) 2019-04-16 17:01:00 +02:00
Xavier
804a996810 Update versions 2019-04-09 22:04:19 +02:00
Xavier
046585020f Allow hashes in Combination module overload (Closes: #1707) 2019-04-09 21:01:55 +02:00
Christophe Maudoux
165c59c882 Update version (#1703) 2019-04-09 16:53:01 +02:00
Christophe Maudoux
9e970b06d2 Fix header empty value (#1703) 2019-04-09 14:41:38 +02:00
Christophe Maudoux
511cef0acd Update comment 2019-04-09 14:41:38 +02:00
Christophe Maudoux
d4593fdaed Fix sent header empty value 2019-04-08 17:15:44 +02:00
Xavier Guimard
2159957c34 Update versions 2019-04-05 09:54:43 +02:00
Xavier Guimard
ece9b21219 Remove trailing whitespaces 2019-04-03 14:15:16 +02:00
Xavier Guimard
141ba96c92 Update version 2019-04-03 13:53:56 +02:00
Xavier
cf908fa091 Clean userLogger (#1687 #1688) 2019-03-27 21:31:04 +01:00
Clément OUDOT
07b7103e3d URL encode POST data keys (#1680) 2019-03-25 14:23:27 +01:00
Clément OUDOT
ef8c097897 Use new jquery URL for form replay (#1679) 2019-03-25 13:36:51 +01:00
Xavier Guimard
bc2bef4ff4 Please use our .perltidyrc 2019-03-07 18:22:58 +01:00
Xavier Guimard
26b80873be Modify Try.pm to handle authorizations (#1658) 2019-03-05 21:11:07 +01:00
Christophe Maudoux
0209e7364b Display empty headers (#1658) 2019-02-26 22:01:15 +01:00
Christophe Maudoux
cb65e0984e Append comment (#1658) 2019-02-26 21:55:03 +01:00
Xavier Guimard
dae8adb443 Read rules in PSGI::Try (#1658) 2019-02-25 23:50:17 +01:00
Christophe Maudoux
e296d1d407 WIP - Append checkHeaders function (#1658) 2019-02-24 22:08:06 +01:00
Xavier Guimard
c7b4eb5051 tidy with new conf 2019-02-07 09:27:56 +01:00
Xavier Guimard
51a9488bc2 Return 0 if init has failed (Fixes: #1486) 2019-02-06 17:48:17 +01:00
Xavier Guimard
5886cbe2a0 Tidy 2019-02-05 23:12:17 +01:00
Xavier Guimard
e2b026b7c8 Fix versions 2019-02-05 23:06:18 +01:00
Clément OUDOT
c77783eb2f Merge branch 'v2.0' 2019-02-05 18:46:40 +01:00
Xavier Guimard
0ddcaa5dc9 Update versions 2019-02-05 18:44:38 +01:00
Xavier Guimard
4934eb92f8 Merge branch 'v2.0' 2019-02-05 11:28:32 +01:00
Xavier Guimard
9582ef82d5 Fix little warning 2019-02-05 11:25:26 +01:00
Christophe Maudoux
45413d838d Typo 2019-02-04 21:15:59 +01:00
Christophe Maudoux
beaab7e7af Fix CDA & AuthBasic namespace (#1638) 2019-02-04 20:50:27 +01:00
Christophe Maudoux
a34aa1992b Fix CDA & AuthBasic namespace (#1638) 2019-02-04 20:47:13 +01:00
Xavier Guimard
c5a3687040 Merge remote-tracking branch 'max/fix-redir' into v2.0 2019-02-03 22:48:43 +01:00
Maxime Besson
e028088f88 Add the ability to detect HTTPS from web server env
This commit adds a new "Default" option for the global HTTPS setting. In
this mode, the handler will refer to the HTTPS env variable to know if it's
being accessed over HTTPS or not. An administrator is of course still
free to force HTTPS by setting it either globally or per-VHost
2019-02-03 20:12:53 +01:00
Maxime Besson
f35a7c305a Add Mail second factor plugin 2019-02-03 14:46:40 +01:00
Maxime Besson
faa748f68f Add Mail second factor plugin 2019-02-03 14:43:44 +01:00
Clément OUDOT
918508c37e Remove STDERR message in Handler.pm (#1618) 2019-02-01 11:24:17 +01:00
Clément OUDOT
8df8d9b521 Remove STDERR message in Handler.pm (#1618) 2019-02-01 11:23:47 +01:00
Clément OUDOT
b79c7112fc Revert "Fix handler namespace"
This reverts commit 01ba3b6e13.
2019-02-01 11:23:36 +01:00
Clément OUDOT
372073e130 Revert "Fix handler namespace"
This reverts commit 01ba3b6e13.
2019-02-01 11:21:25 +01:00
Xavier Guimard
681481b0a1 Fix #1630 2019-02-01 09:52:28 +01:00
Xavier Guimard
01ba3b6e13 Fix handler namespace 2019-01-31 23:16:52 +01:00
Christophe Maudoux
84913b36eb Delete SSO cookie with Nginx (#1630) 2019-01-30 23:10:33 +01:00
Christophe Maudoux
5a03e518c8 Delete SSO cookie with Nginx (#1630) 2019-01-30 23:02:08 +01:00
Christophe Maudoux
72daca2f8f Fix regex (#1630) 2019-01-30 19:36:36 +01:00
Clément OUDOT
54491c667a Use main Handler version in server signature (#1618) 2019-01-16 12:32:45 +01:00
Xavier Guimard
2ab385e2df Update versions 2019-01-09 13:42:30 +01:00
Xavier Guimard
9ebc18ca5d Update version 2018-12-18 13:13:15 +01:00
Christophe Maudoux
f2d1957114 Partial revert (#1585) 2018-12-15 20:31:05 +01:00
Christophe Maudoux
658a7a88c0 Append show_lang and main_logo parameters & Fix URL typo (#1585) 2018-12-15 16:05:48 +01:00
Xavier Guimard
0aabaed43f Fix vhostOptions default value (workaround for @#! SOAP, #1579) 2018-12-12 06:47:33 +01:00
Xavier Guimard
75f20be6d8 Fix some warnings (#1559) 2018-11-29 19:48:49 +01:00
Xavier Guimard
02f8c41030 Fix little warnings (#1559) 2018-11-29 17:00:28 +01:00
Xavier Guimard
b914bfbf0a update translations from transifex 2018-11-28 14:34:00 +01:00
Xavier Guimard
11857d9f8a make tidy 2018-11-26 14:40:21 +01:00
Xavier Guimard
41500780ec Fix warning 2018-11-24 19:48:16 +01:00
Xavier Bachelot
6d10f1f8f2 Remove duplicate use 2018-11-20 10:49:57 +01:00
Xavier Bachelot
301b0d40eb Add missing use 2018-11-19 17:21:07 +01:00
Clément OUDOT
8e9528ca26 Fix Handler CDA (#1544) 2018-11-15 15:17:07 +01:00
Christophe Maudoux
c3ee16ec28 Append handler internal cache timeout parameter (#1535) 2018-11-09 21:35:51 +01:00
Christophe Maudoux
121356dcad Fix unit test warning (#1509) 2018-10-23 23:04:35 +02:00
Christophe Maudoux
aaaa8f54f5 Append debug messages & Fix issue (#1509) 2018-10-23 21:35:44 +02:00
Christophe Maudoux
67e9dc23b1 Fix mistake 2018-10-23 20:27:55 +02:00
Christophe Maudoux
8ba4d112cc Append debug messages (#1509) 2018-10-22 22:40:20 +02:00
Christophe Maudoux
14391d07d1 Append debug messages (#1509) 2018-10-22 22:28:37 +02:00
Clément OUDOT
c5f9a7f95b make tidy 2018-10-12 10:04:03 +02:00
Xavier Guimard
69737ab276 Fix bug introduced in commit 1c382ff (#1514) 2018-10-08 15:54:38 +02:00
Christophe Maudoux
6ae0035fbb Append PE code 2018-10-07 22:39:03 +02:00
Christophe Maudoux
a4b3984374 Remove Perl version directive 2018-10-07 22:38:40 +02:00
Clément OUDOT
1c382ff263 Resolve alias when building redirect URL (#1514) 2018-10-05 11:03:58 +02:00
Xavier Guimard
841c5ba504 Improve Debian autopkgtest tests 2018-09-05 22:24:23 +02:00
Xavier Guimard
7143d82ebf Improve ^ 2018-09-04 17:50:41 +02:00
Xavier Guimard
6133a7175b Add $env macro also in all rules 2018-09-04 16:03:53 +02:00
Xavier Guimard
62d5c7836c make tidy 2018-09-02 17:31:58 +02:00
Christophe Maudoux
8fc2ced862 Fix comments 2018-08-13 14:00:21 +02:00
Xavier Guimard
1da367576e Reinitialize choice when module failed (#1461) 2018-07-06 16:07:25 +02:00
Xavier Guimard
0f7b3ca71d make tidy 2018-07-05 23:00:40 +02:00
Xavier Guimard
b2620c2679 s/datas/data
datas => des données
data => les données
2018-07-05 22:56:16 +02:00
Christophe Maudoux
f767c63013 Fix log msg 2018-07-04 22:49:51 +02:00
Xavier Guimard
4ebcae3e15 Tidy 2018-06-21 21:35:16 +02:00
Xavier Guimard
f5971ad98d Set configuration checkTime (#1454) 2018-06-15 19:00:14 +02:00
Xavier Guimard
a7329c1dcc Verify Mouse version with Apache (#1452) 2018-06-14 06:19:27 +02:00
Xavier Guimard
5bfdeb6b43 Comment (#1452) 2018-06-13 23:20:35 +02:00
Xavier Guimard
f4b3e43a2c Workaround for ModPerl/Mouse bug (#1452) 2018-06-13 23:10:40 +02:00
Xavier Guimard
e67d51156a Little security (#1448) 2018-06-13 06:15:57 +02:00
Xavier Guimard
64fab47ef3 Use localhost instead of 127.0.0.1 (#1448) 2018-06-12 22:35:07 +02:00
Xavier Guimard
7c105e2db6 Fix status for Apache (closes: #1448) 2018-06-12 21:00:10 +02:00
Xavier Guimard
e1f39c4adf Some cleans (#1448) 2018-06-12 14:25:38 +02:00
Xavier Guimard
ecf33106ea Downgrade debug mesage (#1448) 2018-06-12 14:02:32 +02:00
Xavier Guimard
33e20b55f5 Prepare UDP out for status (#1448) 2018-06-12 12:17:17 +02:00
Xavier Guimard
1a9ec21d00 Use IO::Handle methods (#1148) 2018-06-12 11:45:21 +02:00
Xavier Guimard
56dd0610fa Use IO::Select for handler status (#1448) 2018-06-12 06:49:04 +02:00
Xavier Guimard
019f1e75e8 Uniq status daemon for Nginx (#595)
NB: not uniq for Apache for now
2018-06-11 22:11:18 +02:00
Xavier Guimard
8d7593d1f1 Fix SecureToken to be able to use it with other servers (#595) 2018-06-09 22:36:50 +02:00
Xavier Guimard
ca68168064 DebOpsST handler (#1091 and #971) 2018-06-07 19:51:48 +02:00
Xavier Guimard
7f7d068646 Don't reload portal if conf is already loaded 2018-06-05 23:13:18 +02:00
Xavier Guimard
19bd3a8597 Fix error in inheritance path (#1440) 2018-06-01 17:22:27 +02:00
Xavier Guimard
7b2a98d7f3 Fix inheritance path (#1440) 2018-06-01 17:20:34 +02:00
Xavier Guimard
66b81ac277 Fix another empty hash (#1439) 2018-06-01 17:15:13 +02:00
Xavier Guimard
eac34d8ff0 Set headers to {} if empty (Fixes: #1439) 2018-06-01 16:37:48 +02:00
Xavier Guimard
d9cb157477 Workaround for #1439 2018-06-01 16:32:23 +02:00
Xavier Guimard
c1e4c6a6f0 Fix error in CDA (#1440) 2018-06-01 16:16:57 +02:00
Xavier Guimard
c4c63abc8b Use cached conf if backend fails (Closes: #1429) 2018-05-24 10:25:27 +02:00
Xavier Guimard
e90b3c34b0 Set also Lm-Remote-User header during auth process (#595) 2018-05-22 12:37:05 +02:00