Commit Graph

1432 Commits

Author SHA1 Message Date
Yadd
959a4349a2 Merge branch '2328-propagate-logout-through-chaining' into 'v2.0'
test chained SAML login with 2 IDP + logout in SOAP (#2328)

See merge request lemonldap-ng/lemonldap-ng!203
2021-07-09 09:44:08 +00:00
David Coutadeur
70af572c4a test chained SAML login with 2 IDP + logout in SOAP (#2328) 2021-07-09 10:23:17 +02:00
Christophe Maudoux
a85e47ecca Allow to display password with dontStorePassword option & Update unit test (#2454) 2021-07-08 23:55:03 +02:00
Clément OUDOT
82dc1de87f Unit test for portalEnablePasswordDisplay (#2454) 2021-07-07 19:43:56 +02:00
David Coutadeur
5b59eeb2e5 remove useless test on saml signature for test logout through OIDC and SAML chaining (#2328) 2021-07-05 17:43:07 +02:00
David Coutadeur
98b05eb885 test logout through OIDC and SAML chaining (#2328) 2021-07-05 17:09:35 +02:00
Maxime Besson
6a70596ec0 Unit tests for #2544 2021-06-28 13:57:22 +02:00
Christophe Maudoux
7f91820224 Display removed SF name (#1782) 2021-06-26 22:38:42 +02:00
Christophe Maudoux
71ed63a999 Fix unit tests (#2539) 2021-06-26 22:38:41 +02:00
Maxime Besson
d287efb343 Unit test for #2535 2021-06-25 11:43:53 +02:00
Maxime Besson
1d80c262ab Make unit test for #2539 less noisy 2021-06-24 19:05:11 +02:00
Maxime Besson
70bd06bc32 Fix unit test for #2534 2021-06-24 19:02:34 +02:00
Maxime Besson
3d1cc3f499 Unit test for #2534 2021-06-24 16:59:20 +02:00
Christophe Maudoux
71fa5d09f7 Be more strict with URL (#2477) 2021-06-24 14:33:27 +02:00
Yadd
8a18543f55 Remove TODO loop 2021-06-24 14:04:31 +02:00
Maxime Besson
9a2dc48b56 Unit test for #2550 2021-06-21 09:38:03 +02:00
Maxime Besson
ee51e010dc Unit test for #2548 2021-06-21 09:38:03 +02:00
Maxime Besson
e1b7f61d13 Update ID token unit tests 2021-06-21 09:38:03 +02:00
Yadd
b6a1f946b2 Fix handler cache corruption (#2539) 2021-06-19 18:43:41 +02:00
Maxime Besson
2de2cbf454 Fix 2F unit test (#2539) 2021-06-19 18:25:07 +02:00
Maxime Besson
dae4293ecf Unit test for #2518 2021-06-15 14:26:23 +02:00
Maxime Besson
77f5577dc4 Improve SAML test lib 2021-06-15 12:40:15 +02:00
Maxime Besson
cf59bb915e refactor expectAuthenticatedAs 2021-06-15 12:40:15 +02:00
Christophe Maudoux
469d2a40aa Fix warning (#2538) 2021-06-09 23:06:03 +02:00
Christophe Maudoux
86f46ebc5b Fix some warnings (#2538) 2021-06-08 23:03:54 +02:00
Maxime Besson
275567436e Unit test for #2496 2021-06-03 18:31:38 +02:00
Maxime Besson
2414fb4751 Unit tests for (#2510) 2021-06-02 11:08:07 +02:00
Maxime Besson
3b76479bda Add expectPdata function to test lib 2021-06-02 11:07:53 +02:00
Maxime Besson
d4aed0b332 Tidy test lib 2021-06-02 11:07:28 +02:00
Maxime Besson
6ef522c193 Unit tests for #2533 2021-06-01 11:28:34 +02:00
Maxime Besson
ec2b904f4f Unit test for #2532 2021-05-31 11:23:38 +02:00
Maxime Besson
8992b3e789 Unit test for #2529 2021-05-31 09:52:26 +02:00
Christophe Maudoux
7860e18034 Append unit test (#1976) 2021-05-08 21:38:13 +02:00
Christophe Maudoux
a3c48af972 Append unit test (#1976) 2021-05-07 08:15:32 +02:00
Christophe Maudoux
cf55716825 Allow findUser with UpgradeSession (#1976) 2021-05-06 23:16:26 +02:00
Maxime Besson
2142b90caa Unit test for #2513 2021-04-23 09:02:24 +02:00
Maxime Besson
16557f3965 Refactor child-src unit tests (#2513) 2021-04-23 09:02:24 +02:00
Maxime Besson
cd97d3b922 Refactor $req->{cspFormAction} (#2513) 2021-04-23 09:02:24 +02:00
Christophe Maudoux
b54c95ccd2 Improve unit tests & Fix regex (#2509) 2021-04-21 22:14:47 +02:00
Christophe Maudoux
21ced5dbad Fix speChars test, typos & display (#2509) 2021-04-14 13:28:12 +02:00
Maxime Besson
d4c1c3c7de Unit test for #2506 2021-04-09 17:52:24 +02:00
Maxime Besson
1253effa29 Unit test for #2502 2021-04-07 16:40:32 +02:00
Christophe Maudoux
64dffcf4d0 Send only technical and exported attributes (#2503) 2021-04-03 16:46:43 +02:00
Christophe Maudoux
4751427105 Fix error level & Improve doc (#1976) 2021-04-01 23:31:48 +02:00
Christophe Maudoux
bcfb075f63 Be more consistent with REST params & Update doc (#1976) 2021-04-01 22:48:08 +02:00
Christophe Maudoux
6eda19c112 Fix test (#2501) 2021-04-01 19:02:46 +02:00
Christophe Maudoux
654184dd66 Fix bad request (#2501) 2021-04-01 14:49:44 +02:00
Maxime Besson
9fda75edc5 Unit test for #2488 2021-03-17 14:24:47 +01:00
Maxime Besson
fc693184dc Unit test for #2484 2021-03-10 15:47:46 +01:00
Maxime Besson
6a3479ea3c unit tests: Try to find templateDir in path
This change makes running the testsuite from an external directory
easier. Which is useful if you want to unit test a custom module
2021-03-08 18:45:13 +01:00
Maxime Besson
e3ecddb8c9 Unit tests for #2424 2021-03-03 11:03:19 +01:00
Christophe Maudoux
b46259cae9 Enable upgradeSession only if required & Append unit test (#2480) 2021-03-02 19:20:15 +01:00
Yadd
a422af3038 Fix test 2021-03-02 07:58:25 +01:00
Yadd
3883c5abff Fix vhost regexp (#2477) 2021-03-02 07:57:21 +01:00
Maxime Besson
09d727410c Unit test for #2474 2021-02-24 17:48:12 +01:00
Maxime Besson
db8ea6f885 Extend GPG key expiration date, fixes GPG unit test 2021-02-20 20:31:21 +01:00
Maxime Besson
861463f987 Update unit test for #2465 2021-02-19 17:39:45 +01:00
Christophe Maudoux
ff36b81e73 Append accessor to avoid modify conf (#2451) 2021-02-19 07:44:00 +01:00
Xavier Guimard
b5c0ca94c4 CrowdSec plugin (#2451) 2021-02-19 07:40:36 +01:00
Christophe Maudoux
057cfb29e8 Improve code (#2458) 2021-02-18 23:35:25 +01:00
Christophe Maudoux
5f7981e256 Improve error message & unit test (#2458) 2021-02-16 22:04:38 +01:00
Christophe Maudoux
d9a0034e7c Fix warning 2021-02-16 19:07:30 +01:00
Christophe Maudoux
21ba54ca74 Fix warning 2021-02-16 18:49:37 +01:00
Christophe Maudoux
c1951ce3fe Fix warning 2021-02-16 18:30:41 +01:00
Christophe Maudoux
67d8dccf25 Fix warning 2021-02-16 17:04:41 +01:00
Christophe Maudoux
12565ec173 Fix warning 2021-02-16 17:03:34 +01:00
Christophe Maudoux
35385b803d Fix warning 2021-02-16 16:35:23 +01:00
Christophe Maudoux
edf7a88114 Update 29-AuthGPG.t 2021-02-16 15:29:27 +01:00
Christophe Maudoux
071cfe68e2 Fix test 2021-02-16 14:56:59 +01:00
Christophe Maudoux
4583108068 Append download unit test (#2458) 2021-02-16 14:21:10 +01:00
Christophe Maudoux
e477a1cef8 Append unit test & Doc (#2458) 2021-02-15 11:40:46 +01:00
Christophe Maudoux
55071d5210 Keep old behavior if no JS (#1976) 2021-02-05 18:05:59 +01:00
Maxime Besson
857a336da2 Unit tests for JWT access tokens (#2419) 2021-02-01 18:20:32 +01:00
Maxime Besson
420fc72d63 Remove useless vars from OIDC tests 2021-02-01 18:20:32 +01:00
Maxime Besson
3fcea7eb1d Refactor OIDC unit tests 2021-02-01 18:20:32 +01:00
Maxime Besson
6aef1a6317 Refactor: getUserInfo now returns a hash 2021-02-01 18:20:32 +01:00
Maxime Besson
4803024b3e Unit tests for #2424 2021-02-01 16:25:36 +01:00
Christophe Maudoux
ea80b4df0e Use Ajax request (#1976) 2021-01-30 23:22:03 +01:00
Maxime Besson
f8f892c741 Unit test for #2449 2021-01-29 09:45:50 +01:00
Maxime Besson
11a8615348 Fix unit test for #1987 2021-01-25 12:18:55 +01:00
Christophe Maudoux
d2e35df987 Test required select values & Append unit test (#1976) 2021-01-24 19:07:58 +01:00
Christophe Maudoux
7c3955b2aa Allow input type select with FindUser (#1976) 2021-01-23 23:00:23 +01:00
Christophe Maudoux
7d232b43fd Append unit Combination unit test (#1976) 2021-01-23 18:56:19 +01:00
Maxime Besson
ef3c0121e7 Fix random CI failures 2021-01-20 16:52:20 +01:00
Maxime Besson
0e5686a7db Unit test for #2445 2021-01-20 15:37:31 +01:00
Maxime Besson
9463ad3fe5 Unit test for client credentials grant (#1987) 2021-01-19 17:06:21 +01:00
Christophe Maudoux
e4444c907f Append CheckUser normalized headers option & Improve unit test (#2436) 2021-01-08 18:38:05 +01:00
Christophe Maudoux
39528ef1c3 Control parameters (#1976) & Improve unit tests 2021-01-05 22:46:35 +01:00
Christophe Maudoux
1c45e8a8c0 Merge branch 'v2.0' into findUser 2021-01-05 22:14:28 +01:00
Christophe Maudoux
846d6a3655 Allow wildcard with searching parameters (#1976) & Improve unit tests 2021-01-05 22:08:48 +01:00
Maxime Besson
127aa91a8f Merge branch 'feature-cas-service-url-2321' into 'v2.0'
Feature cas service url 2321

See merge request lemonldap-ng/lemonldap-ng!175
2021-01-05 18:49:24 +01:00
Maxime Besson
723dcce62f Unit test for #2321 2021-01-05 17:42:40 +01:00
Maxime Besson
65939365a8 Unit test for #716 2021-01-04 21:31:34 +01:00
Maxime Besson
971dbf231e Unit test for #714 2021-01-04 21:31:34 +01:00
Maxime Besson
fdbe713e1f Unit test for #2430 2021-01-04 21:16:52 +01:00
Christophe Maudoux
554daba5fe Allow multi-valued excluding parameters (#1976) 2021-01-04 20:23:42 +01:00
Christophe Maudoux
fc6ea96954 FindUser with combination (#1976) 2021-01-03 19:00:20 +01:00
Christophe Maudoux
50a35e7588 Improve unit test (#1976) 2021-01-02 23:08:56 +01:00
Christophe Maudoux
c2c02b4c86 Append REST UserDB unit test (#1976) 2021-01-02 22:50:56 +01:00
Christophe Maudoux
5e8effcddd Test token (#1976) 2021-01-02 17:46:16 +01:00
Christophe Maudoux
c2342336c2 Merge branch 'v2.0' into findUser 2020-12-27 23:39:54 +01:00
Christophe Maudoux
597455dfcf FindUser with LDAP & AD & Append unit test (#1976) 2020-12-27 23:37:40 +01:00
Christophe Maudoux
072f68004a Improve debug log & unit tests (#1976) 2020-12-27 18:03:08 +01:00
Christophe Maudoux
0b750fb6cc Append Choice unit tests (#1976) 2020-12-27 14:24:15 +01:00
Christophe Maudoux
c0f71ee0f1 Fix FindUSer with Choice (#1976) 2020-12-27 13:29:10 +01:00
Christophe Maudoux
406fdbc54b Append unit test if Impersonation is missing (#1976) 2020-12-26 15:27:25 +01:00
Christophe Maudoux
3219673375 Append unit test with token & Fix error code (#1976) 2020-12-26 14:30:38 +01:00
Christophe Maudoux
23e52fcec2 Append Demo UserDB unit test & Fix code (#1976) 2020-12-26 14:30:38 +01:00
Christophe Maudoux
f956810e48 Redirect to Portal (#1976) 2020-12-23 22:47:08 +01:00
Christophe Maudoux
c3d2b2b463 Fix warnings 2020-12-23 16:23:28 +01:00
Christophe Maudoux
60ce68ce23 Use OTT (#1976) 2020-12-23 14:50:36 +01:00
Christophe Maudoux
02aafdeddd Improve unit test DBI (#1976) 2020-12-22 23:04:47 +01:00
Christophe Maudoux
77c25b98cf FindUser DBI & Append unit test (#1976) 2020-12-22 22:51:37 +01:00
Maxime Besson
ed0be42c93 Merge branch 'WIP-plugin-hooks-2359' into 'v2.0'
Plugin hook system to extend issuers (and maybe more)

See merge request lemonldap-ng/lemonldap-ng!166
2020-12-21 16:35:03 +01:00
Christophe Maudoux
48df4a8807 Fix conf test & unit test (#2243) 2020-12-19 19:46:36 +01:00
Christophe Maudoux
56243712ff Update unit tests (#2243) 2020-12-17 22:55:12 +01:00
Christophe Maudoux
ef8aa7cee9 Update unit test (#2243) 2020-12-16 23:35:53 +01:00
Christophe Maudoux
652d8ba9bc Prevent authentication on backend if account is locked (#2243) 2020-12-16 22:49:41 +01:00
Christophe Maudoux
2dde8672d5 Fix unit tests warning (#2406) 2020-12-11 00:10:22 +01:00
Christophe Maudoux
90d2dc58b7 Decrease log level 2020-12-10 23:56:12 +01:00
Maxime Besson
c57c72ae1e Unit test for #2413 2020-12-09 18:01:44 +01:00
Maxime Besson
d7d1473ad5 Unit tests for #2403 2020-12-07 17:49:22 +01:00
Christophe Maudoux
c2266720f9 Unauthenticated logout request with route & improve unit test (#2342) 2020-12-06 11:21:11 +01:00
Christophe Maudoux
41889e5ee2 Append unit test (#2342) 2020-12-05 20:37:50 +01:00
Christophe Maudoux
f2960f706e TOTP tolerates both backward and forward clock drift & Append unit test (#2394) 2020-12-04 23:05:11 +01:00
Clément OUDOT
db8e8be2ad Reduce loglevel in unit test (#2406) 2020-12-03 20:55:43 +01:00
Clément OUDOT
6b1da39581 Unit test for mail 2F session key (#2406) 2020-12-03 20:00:51 +01:00
Christophe Maudoux
40113b6829 Improve unit test (#2398) 2020-12-01 22:49:17 +01:00
Maxime Besson
3d83e9fb88 Unit test for OIDC hooks (#2359) 2020-11-27 14:00:58 +01:00
Maxime Besson
bfb0041074 Unit test for SAML hooks (#2359) 2020-11-27 14:00:58 +01:00
Christophe Maudoux
47151b608a Log level 2020-11-25 21:58:40 +01:00
Christophe Maudoux
b04bb6ab84 Test if Vhost is HTTP or HTTPS & improve unit test (#2386) 2020-11-25 19:09:33 +01:00
Maxime Besson
62c0f9a8b7 unit test for has2f (#2391) 2020-11-18 10:10:51 +01:00
Christophe Maudoux
433d0f1259 Fix warnings 2020-11-17 23:23:17 +01:00
Christophe Maudoux
df99148b68 Fix wildcarded VHost & improve unit test (#2386) 2020-11-17 22:03:55 +01:00
Maxime Besson
0bf14c4709 Unit test for #2382 2020-11-16 18:38:53 +01:00
Maxime Besson
4ceb75c970 Add urlencode helper to test lib 2020-11-16 18:38:53 +01:00
Maxime Besson
ad4a79e9de Add http/https option to test lib 2020-11-16 18:38:53 +01:00
Maxime Besson
0263865faa Add CORS headers to error pages (#2380) 2020-11-12 14:34:16 +01:00
Maxime Besson
5ada67bf47 Unit test for #2378 2020-11-11 13:39:37 +01:00
Maxime Besson
c8248e1dd3 Add groups for test suite users 2020-11-11 13:39:04 +01:00
Christophe Maudoux
c742d8320e Set user and oldpassword fields into reset password form & Improve unit tests (#2377) 2020-11-09 13:27:16 +01:00
Maxime Besson
3b122daab9 Unit tests for (#2330) 2020-11-06 19:00:52 +01:00
Maxime Besson
9463278b2d Fix doc in test-lib 2020-11-05 10:38:47 +01:00
Maxime Besson
03a6a25bed Unit test for #2372 2020-11-05 10:38:47 +01:00
Clément OUDOT
b0ef0376fb Adapt unit test to new HTML code (#2374) 2020-11-05 10:14:42 +01:00
Clément OUDOT
18c1a753ad Remove space from generated login in register process (#2373) 2020-11-04 21:10:09 +01:00
Christophe Maudoux
e017f3af80 Improve unit tests (#2368) 2020-11-04 13:49:51 +01:00
Christophe Maudoux
ca7107ec59 Improve unit test (#2364) 2020-11-01 19:47:10 +01:00
Christophe Maudoux
fb02515d3e Append unit test & update manifest (#2366) 2020-11-01 12:40:26 +01:00
Christophe Maudoux
7ac2a0da80 Allow to check last logins with stayConnected plugin & improve unit test (#2365) 2020-10-31 22:10:14 +01:00
Christophe Maudoux
f212b68837 Improve unit test & perl tidy (#2356) 2020-10-18 20:43:12 +02:00
Christophe Maudoux
bb79e2a9ac Merge branch 'v2.0' into 'v2.0'
fix some RGAA criteria

See merge request lemonldap-ng/lemonldap-ng!165
2020-10-18 20:37:30 +02:00
dcoutadeur
3d2d08e1fc fix previous commit: RGAA 5.4 requires arrays to have defined captions (#2356) 2020-10-18 14:35:51 +02:00
Christophe Maudoux
90c8c2ba86 Improve messages (#2332) 2020-10-16 23:27:06 +02:00
Christophe Maudoux
4b479d48b0 Improve unit test (#2352) 2020-10-14 22:02:57 +02:00
Christophe Maudoux
f6eb9e5c1a Improve unit test (#2332) 2020-10-12 22:16:36 +02:00
Christophe Maudoux
605d724453 Improve GUI & unit tests (#2332) 2020-10-12 19:24:52 +02:00
Christophe Maudoux
9245fc4ee1 Append unit test (#2338) 2020-10-12 14:55:46 +02:00
Maxime Besson
834c09995c Fix unit tests for #2431 2020-10-07 19:46:56 +02:00
Maxime Besson
1a92304bcd Fallback to sha1 saml signatures on old test env (#2341) 2020-10-07 19:14:34 +02:00
Maxime Besson
856f798e4d Update unit test for #2322 2020-10-07 15:31:59 +02:00
Maxime Besson
af80e3c4ee Unit test for #2319 2020-10-07 15:31:27 +02:00
Clément OUDOT
a2c2d4281f Fix JSON usage in unit test for adaptative authentication level plugin (#2336) 2020-10-05 10:49:49 +02:00
Clément OUDOT
5d22cf9cd8 Force logout in unit test (#2336) 2020-10-04 17:16:02 +02:00
Clément OUDOT
b21a5fc653 Unit test for adaptative authentication level plugin (#2336) 2020-10-04 16:46:14 +02:00
Christophe Maudoux
b573dbb789 Better fix and improve unit test (#2337) 2020-10-04 11:35:26 +02:00
Christophe Maudoux
222a6472f4 Fix unit test with skip() (#2333) 2020-10-03 13:31:20 +02:00
Christophe Maudoux
89372fb2ce Append unit test (#2333) 2020-10-03 12:34:13 +02:00
Christophe Maudoux
6f62adacee Improve unit test (#2315) 2020-09-16 11:11:46 +02:00
Christophe Maudoux
556e1fd2df perl tidy 2020-09-15 22:24:36 +02:00
Christophe Maudoux
92df2a84d0 Append unit test (#2314 & #2315) 2020-09-15 22:18:32 +02:00
Christophe Maudoux
0f659feda4 Update unit tests (#2314) 2020-09-15 14:13:34 +02:00
Maxime Besson
d0804e2449 Add unit test for SAML proxy (#2262) 2020-09-08 14:16:49 +02:00
Christophe Maudoux
059b2b13f1 Merge branch 'v2.0' into 2266 2020-09-07 18:56:37 +02:00
Maxime Besson
00da613dfc Unit tests for #2124 2020-09-04 17:17:04 +02:00
Maxime Besson
0c9e3d1da3 Fix unit tests for new renew session URL (#2124) 2020-09-04 17:16:11 +02:00
Christophe Maudoux
e4a458633d Append unit test (#2266) 2020-08-30 14:34:24 +02:00
Christophe Maudoux
215efc4334 Improve unit test (#2266) 2020-08-30 14:22:49 +02:00
Christophe Maudoux
0a4812203c Allowed all special chars and rule to disable local password policy (#2266) 2020-08-29 19:08:47 +02:00
Christophe Maudoux
39ba25f91d Improve unit test (#2289) 2020-08-29 18:02:19 +02:00
Christophe Maudoux
28e7e632af Fix unit test 2020-08-29 12:25:13 +02:00
Christophe Maudoux
779fd983e5 Typo (#2302) 2020-08-28 21:56:54 +02:00
Christophe Maudoux
317172c8ac Fix unit tests (#2276) 2020-08-28 14:44:03 +02:00
Christophe Maudoux
525eab006d Improve unit test (#2276) 2020-08-28 10:41:40 +02:00
Maxime Besson
bcb6c428f1 Fix unit test (#2271) 2020-08-25 18:27:25 +02:00
Clément OUDOT
3a52c220b5 Adapt unit tests to new HTML code (#2271) 2020-08-25 00:24:54 +02:00
Maxime Besson
cdafab6bfe Unit test fix for #2249 2020-08-21 16:38:31 +02:00
Maxime Besson
b85072251a Unit tests for #2280 2020-08-17 22:08:08 +02:00
Maxime Besson
77b4dff20d Unit tests for #2281 2020-08-17 18:05:09 +02:00
Christophe Maudoux
192861d639 Improve unit tests (#2275) 2020-08-16 12:11:31 +02:00
Maxime Besson
b2a2575896 Fix incorrect SOAP content type in SAML issuer (#2263) 2020-08-10 15:06:00 +02:00
Christophe Maudoux
2d4a145a73 Improve unit test (#2273) 2020-08-09 12:36:04 +02:00
Christophe Maudoux
a1ebb0ee02 Fix ContextSwitching redirect & update unit tests (#2273) 2020-08-08 20:00:41 +02:00
Maxime Besson
f4ec555ca0 Fix unit tests for #2271 2020-08-07 10:16:24 +02:00
Christophe Maudoux
b86c3431c2 Append setSession info step (#2172) 2020-06-07 13:25:07 +02:00
Christophe Maudoux
61b10ce67a Improve unit test (#2229) 2020-06-07 11:28:04 +02:00
Christophe Maudoux
b04b2076de Preserve real_hGroups (#2229) 2020-06-06 23:27:37 +02:00
Xavier Guimard
767b4ceeef Some little things 2020-05-31 09:23:40 +02:00
Maxime Besson
827d06cded refactor unit test 2020-05-29 15:51:51 +02:00