Commit Graph

4365 Commits

Author SHA1 Message Date
Christophe Maudoux
50a35e7588 Improve unit test (#1976) 2021-01-02 23:08:56 +01:00
Christophe Maudoux
e1de8e34c2 Merge branch 'v2.0' into findUser 2021-01-02 22:55:45 +01:00
Christophe Maudoux
c2c02b4c86 Append REST UserDB unit test (#1976) 2021-01-02 22:50:56 +01:00
Christophe Maudoux
994ccfae30 Append REST findUser URL parameter (#1986) 2021-01-02 20:22:33 +01:00
Christophe Maudoux
de1be30176 Fix other Backend (#1976) 2021-01-02 19:21:16 +01:00
Christophe Maudoux
b075082970 REST Backend (#1976) 2021-01-02 18:59:30 +01:00
Christophe Maudoux
5e8effcddd Test token (#1976) 2021-01-02 17:46:16 +01:00
Maxime Besson
49905d4759 Remove debug log 2020-12-30 16:34:40 +01:00
Christophe Maudoux
a1700369c5 Merge branch 'v2.0' into findUser 2020-12-29 14:59:36 +01:00
Maxime Besson
4eeef91588 Add SAML ACS to environment (#2427) 2020-12-29 14:17:06 +01:00
Maxime Besson
7e48ec702e Improve js syntax (#2399) 2020-12-28 10:35:40 +01:00
Maxime Besson
0c246a7613 Disable password policy check when generating new pw (#2399) 2020-12-28 10:35:40 +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
0236dc00d6 Removing workaround with MailPasswordReset 2020-12-23 14:57:55 +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
ed8ed39c4f Make manifest 2020-12-22 22:53:04 +01:00
Christophe Maudoux
076a84764e Make manifest 2020-12-22 22:52:41 +01:00
Christophe Maudoux
77c25b98cf FindUser DBI & Append unit test (#1976) 2020-12-22 22:51:37 +01:00
Christophe Maudoux
510a1dc1c2 WIP: UserDB findUser (#1976) 2020-12-22 17:02:51 +01:00
Christophe Maudoux
9dcf70a5ef Code cleaning 2020-12-22 14:05:22 +01:00
Christophe Maudoux
e7baa348ba Update lang & conf test (#1976) 2020-12-21 22:31:29 +01:00
Christophe Maudoux
fc4024f024 Return parameters (#1976) 2020-12-21 21:35:44 +01:00
Maxime Besson
860545dd27 Deprecate llngDeleteSession (#2351) 2020-12-21 21:33:51 +01:00
Christophe Maudoux
bfcdd370df Merge branch 'v2.0' into findUser 2020-12-21 21:11:55 +01:00
Clément OUDOT
fc16426ca9 Add alt attribute to images (#2422) 2020-12-21 16:46:03 +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
Maxime Besson
e05a167937 Handle missing nameid (#2420) 2020-12-21 11:05:00 +01:00
Christophe Maudoux
a259566eb1 Excluding parameters (#1976) 2020-12-20 23:49:46 +01:00
Christophe Maudoux
86bbb70b89 Skip empty values (#1976) 2020-12-20 23:04:07 +01:00
Christophe Maudoux
4d04672c20 WIP: FindUser skeleton (#1976) 2020-12-20 22:54:35 +01:00
Christophe Maudoux
512045c528 Fix conf test (#2243) 2020-12-20 17:29:13 +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
7be0240389 Update default values & Tidy (#2243) 2020-12-16 22:58:01 +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
442203685f checkState: fix perl error when testing a user account (#2413) 2020-12-09 18:01:02 +01:00
Maxime Besson
d7d1473ad5 Unit tests for #2403 2020-12-07 17:49:22 +01:00
Maxime Besson
8793a5b6a1 Fix storage of LDAP attributes with a value of 0 (#2403) 2020-12-07 17:49:21 +01:00
Clément OUDOT
185c3f690c Only run checkpassword javascript if a newpassword field is present (#2411) 2020-12-07 17:40:46 +01:00
Maxime Besson
c6d20ca8b3 Fix init of ::Portal::Password::LDAP (#2410) 2020-12-07 16:59:48 +01:00
Maxime Besson
9ba6938e90 Show a friendlier error message when a module fails init (#2410) 2020-12-07 16:59:48 +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
b2306cc8ad Unauthenticated logout (#2342) 2020-12-05 19:31:23 +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
Xavier Guimard
b5aec37089 Add Spanish translation (not finished but usable) 2020-12-04 13:11:01 +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
Clément OUDOT
426555effe Use a specific parameter for mail 2F session key (#2406) 2020-12-03 19:59:36 +01:00
Christophe Maudoux
40113b6829 Improve unit test (#2398) 2020-12-01 22:49:17 +01:00
Christophe Maudoux
421929d081 Hide valued headers only (#2398) 2020-12-01 20:49:42 +01:00
Clément OUDOT
8211850be7 Better userLogger messages for password change (#2393) 2020-11-29 18:02:13 +01:00
Clément OUDOT
fa36ca674c CSS improvements for checkbox label (#2301) 2020-11-28 13:18:38 +01:00
Clément OUDOT
375c64ab42 CSS rule to fix height for checkboc label (#2301) 2020-11-28 13:05:07 +01:00
Clément OUDOT
0761e4dabb Fix CSS typo (#1431) 2020-11-28 13:00:50 +01:00
Christophe Maudoux
32d52b96d8 Append an option to obfuscate some headers value (#2398) 2020-11-27 23:09:18 +01:00
Maxime Besson
699679a8e0 Documentation for #2359 2020-11-27 14:00:58 +01:00
Maxime Besson
3d83e9fb88 Unit test for OIDC hooks (#2359) 2020-11-27 14:00:58 +01:00
Maxime Besson
f49c1adf17 add oidcGenerateIDToken hook (#2359) 2020-11-27 14:00:58 +01:00
Maxime Besson
daef0cf776 add oidcGenerateUserInfoResponse hook (#2359) 2020-11-27 14:00:58 +01:00
Maxime Besson
faadb3f059 add oidcGotRequest hook (#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
Maxime Besson
c19be1d501 Tidy SAML issuer (#2359) 2020-11-27 14:00:58 +01:00
Maxime Besson
a706f8a470 add samlBuildLogoutResponse hook (#2359) 2020-11-27 14:00:58 +01:00
Maxime Besson
ddc43f7c9c add samlGotLogoutRequest hook (#2359) 2020-11-27 14:00:58 +01:00
Maxime Besson
2dba11e6b3 Add samlBuildAuthnResponse hook (#2359) 2020-11-27 14:00:58 +01:00
Maxime Besson
de1d6e205b Add samlGotAuthnRequest hook (#2359) 2020-11-27 14:00:58 +01:00
Maxime Besson
f0dbb28866 Add Hook system for plugins (#2359) 2020-11-27 14:00:58 +01:00
Xavier Guimard
54b778ddb7 Update zh_TW translation 2020-11-27 12:27:21 +01:00
Christophe Maudoux
7a7751e569 Code refactoring & typos (#2334) 2020-11-25 21:59:49 +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
Christophe Maudoux
f963afd812 Logs more explicit (#2334) 2020-11-25 17:17:36 +01:00
Xavier Guimard
74f582baf4 Add zh_TW translation (portal) 2020-11-23 15:43:13 +01:00
Christophe Maudoux
0a4fabb4e4 Use strict & fix warnings 2020-11-21 19:24:04 +01:00
Christophe Maudoux
6060a54536 Use whatToTrace in log (#2393) 2020-11-19 21:51:58 +01:00
Christophe Maudoux
a19d229cd3 Use whatToTrace in log (#2393) 2020-11-19 21:28:52 +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
Maxime Besson
17f1b474c1 Allow custom logo for sslChoice (#2388)
CHOICENAME.png now works if the file exists in common/modules
2020-11-17 22:30:47 +01:00
Christophe Maudoux
0294df1cc8 URI are case sensitive (#2386) 2020-11-17 22:03:55 +01:00
Christophe Maudoux
df99148b68 Fix wildcarded VHost & improve unit test (#2386) 2020-11-17 22:03:55 +01:00
Christophe Maudoux
dfc68f9f98 Use Mouse instead of Exporter 2020-11-16 21:54:54 +01:00
Maxime Besson
0bf14c4709 Unit test for #2382 2020-11-16 18:38:53 +01:00
Maxime Besson
8f1b30b6d0 Return an error if http session could not be found (#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
Xavier Guimard
30583e3f0f Add Chinese (Taiwan) translation of mail.json 2020-11-16 09:58:56 +01:00
Christophe Maudoux
0e27767872 Resize modules logo 2020-11-15 23:05:39 +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
231ec50d63 Fix protocol in log 2020-11-10 10:47:14 +01:00
Christophe Maudoux
91907eba90 Improve & fix AD backend (#2377) 2020-11-09 17:50:15 +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
fa2301ab0e Force OIDC claim types according to config (#2330) 2020-11-06 19:00:52 +01:00
Xavier Guimard
893385d007 Replace application/javascript by application/json (Fixes #2376) 2020-11-06 17:58:41 +01:00
Clément OUDOT
fa0f043f18 Check internal refresh result (#2375) 2020-11-05 12:26:35 +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
Maxime Besson
d63a55d619 Check Kerberos domain against optional whitelist (#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
e00f1f9e5f Use form-check-input class (#2374) 2020-11-04 23:28:13 +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
31ff8484bb Tidy 2020-11-04 17:02:07 +01:00
Christophe Maudoux
20f5f467dd Typos (#2368) 2020-11-04 16:12:04 +01:00
Christophe Maudoux
e017f3af80 Improve unit tests (#2368) 2020-11-04 13:49:51 +01:00
Christophe Maudoux
50f01e2cbe Remove cookie & code refactoring (#2368) 2020-11-04 13:49:51 +01:00
Maxime Besson
1de41224f8 Avoid memory leaks in $req->steps (#2369) 2020-11-02 23:22:04 +01:00
Clément OUDOT
8c1f5c6d50 Launch adaptative authentication plugin just before storing session values (#2336) 2020-11-02 15:56:19 +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
Xavier Guimard
6990a4a0c0 Set "secure" to StayConnected cookie 2020-11-01 08:15:09 +01:00
Christophe Maudoux
0469d36aec Update version & tidy (#2366) 2020-10-31 23:55:41 +01:00
Christophe Maudoux
d8114e0e16 Submit 2FA with StayConnected plugin (#2366) 2020-10-31 23:20:18 +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
b869b59da7 Avoid assignment (#2360) 2020-10-30 12:55:39 +01:00
Maxime Besson
367f1bc5ad Add LDAP IO timeout (#2267) 2020-10-27 16:01:39 +01:00
Xavier Guimard
b6c78511db Import tr translation from transifex 2020-10-26 20:06:16 +01:00
Christophe Maudoux
e704fe24ea Fix warning if no path given & code refactoring 2020-10-26 19:21:54 +01:00
Xavier Guimard
5626852872 Refresh translations 2020-10-19 06:14:38 +02:00
Christophe Maudoux
3b1fbd3259 Fix caption position & minify (#2356) 2020-10-18 21:02:23 +02: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
dcoutadeur
4a1f08e681 fix previous commit: RGAA 5.4 requires arrays to have defined captions (#2356) 2020-10-17 19:43:50 +02:00
Christophe Maudoux
90c8c2ba86 Improve messages (#2332) 2020-10-16 23:27:06 +02:00
dcoutadeur
59cb1db437 fix RGAA 5.4 requires arrays to have defined captions (#2356) 2020-10-16 16:07:31 +02:00
Clément OUDOT
901dc20d69 Use same fields id for passwords in mail.tpl than in password.tpl (#2355) 2020-10-15 18:21:17 +02:00
Christophe Maudoux
4b479d48b0 Improve unit test (#2352) 2020-10-14 22:02:57 +02:00
Christophe Maudoux
da9dc04657 redirect user to 2fregisters after reAuthn process (#2332) 2020-10-14 22:02:57 +02:00
Christophe Maudoux
a86bf488c4 Test if a skip option is enabled (#2352) 2020-10-13 22:30:06 +02:00
Christophe Maudoux
929e00e91a Display button only if upgradeSession plugin is enabled (#2332) 2020-10-12 22:32:05 +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