Commit Graph

5009 Commits

Author SHA1 Message Date
Maxime Besson 67ebefd137 Document new Captcha API (#2692) 2022-06-17 16:19:29 +02:00
Maxime Besson aca5468100 Add unit test for old Captcha API (#2692) 2022-06-17 15:38:05 +02:00
Maxime Besson 7817a1b544 Update templates for new Captcha API (#2692) 2022-06-17 15:38:05 +02:00
Maxime Besson aef1ebc348 Fix unit tests for new Captcha API (#2692)
New API does not differentiate between empty and wrong captcha
2022-06-17 15:38:05 +02:00
Maxime Besson c6931ccb54 Update Portal plugins to new Captcha API (#2692) 2022-06-17 15:38:05 +02:00
Maxime Besson ef134f8ce1 Implement new Captcha API in portal (#2692) 2022-06-17 15:38:05 +02:00
Maxime Besson fc626c752a Split SecurityImage Captcha into a dedicated module (#2692)
Lib::Captcha is now only a compatibility wrapper
2022-06-17 15:38:05 +02:00
Maxime Besson 9674510863 add mfaDeleted event (#2756) 2022-06-16 16:32:14 +02:00
Maxime Besson 0a1783f165 add mfaAdded js event (#2756) 2022-06-16 16:32:14 +02:00
Maxime Besson cd41ba8872 Merge branch 'fix-2fa-timeout-2757' into 'v2.0'
Add specific 2FA timeout (#2757)

See merge request lemonldap-ng/lemonldap-ng!269
2022-06-16 12:33:19 +00:00
Maxime Besson fd8c3b1b61 Fix #2708 2022-06-14 14:48:46 +02:00
Christophe Maudoux 651beaf130 Improve code 2022-06-03 19:27:06 +02:00
Maxime Besson 3f783f4805 Unit test for #2760 2022-06-03 17:42:29 +02:00
Maxime Besson e27f0b6b10 Fix #2760 2022-06-03 17:42:29 +02:00
Maxime Besson 095f69cd49 Unit test for #2757 2022-06-03 15:35:21 +02:00
Maxime Besson 828fb10389 Default 2FA token to sfLoginTimeout (#2757) 2022-06-03 15:35:21 +02:00
Maxime Besson a23db69545 Add sfLoginTimeout option in manager (#2757) 2022-06-03 15:35:19 +02:00
Christophe Maudoux d80d66e07a Update unit test (#2759) 2022-06-03 09:31:24 +02:00
Christophe Maudoux f0d102a6bb Fix debug log 2022-06-02 23:39:18 +02:00
Christophe Maudoux 78bd430057 Append go-to-top button & Doc (#2759) 2022-06-02 23:39:00 +02:00
Maxime Besson d7ed5c9e35 Relax detection of client authentication type (#2757) 2022-05-25 15:32:32 +02:00
Clément OUDOT 3a82e3af7b Merge branch 'feature/v2.0/support-ldap-uris' into 'v2.0'
Support TLS parameters for ldaps URIs

See merge request lemonldap-ng/lemonldap-ng!256
2022-05-23 08:52:01 +00:00
Eero Häkkinen 91bf5323a5 Support TLS parameters for ldaps URIs 2022-05-20 21:53:06 +03:00
Maxime Besson d832263129 Merge branch 'fix-refactor-2f-mini' into 'v2.0'
Refactor WebAuthn to share some functions with other 2F plugins

See merge request lemonldap-ng/lemonldap-ng!266
2022-05-20 07:50:09 +00:00
Christophe Maudoux 82c10e3ecd Typos (#2753) 2022-05-19 23:20:32 +02:00
Maxime Besson 4edd5332bb Unit test for #2753 2022-05-18 11:35:02 +02:00
Maxime Besson 5e210651aa Add CAS server resolution rules (#2753) 2022-05-18 11:32:04 +02:00
Maxime Besson 3428cb981f Add OP resolution rules (#2753) 2022-05-18 11:32:04 +02:00
Clément OUDOT 3fe037c226 Better look for remember timer box 2022-05-17 15:32:07 +02:00
David Coutadeur ed03ce6a8e rememberAuthChoice: resolve conflicts with 2.0 branch (#2737) 2022-05-17 09:57:45 +00:00
Christophe Maudoux 17328aa2aa Append favicon option (#2750) 2022-05-16 22:32:11 +02:00
Christophe Maudoux 91a5aabf0b Merge branch '2745' into 'v2.0'
Use portalEnablePasswordDisplay option in password change/reset forms

See merge request lemonldap-ng/lemonldap-ng!265
2022-05-16 17:21:37 +00:00
David Coutadeur ee2e042fc0 rememberAuthChoice: fix timer to really launch authent at 0 (#2737) 2022-05-16 15:36:34 +00:00
David Coutadeur dfe8aebf33 rememberAuthChoice: hide rememberAuthChoice checkbox when timer is active (#2737) 2022-05-16 15:09:26 +00:00
Clément OUDOT 3b0a928ba6 Fix some typos in embedded doc 2022-05-16 13:38:52 +00:00
Maxime Besson c85ade2e27 perldoc for 2fDevices lib 2022-05-16 14:21:53 +02:00
Maxime Besson 0f6753d188 Refactor Webauthn 2022-05-16 14:21:53 +02:00
Maxime Besson 21745359a2 Fix #2716 2022-05-16 14:21:53 +02:00
Maxime Besson cc5435015d Extract 2F common functions into lib 2022-05-16 14:21:53 +02:00
Christophe Maudoux 1976e3e44b Use standard HTML attribute + update unit tests (#2745) 2022-05-16 13:38:23 +02:00
David Coutadeur 8f4eb83a2e rememberAuthChoice: reconciliation with v2.0 branch (#2737) 2022-05-16 10:06:23 +00:00
David Coutadeur fe6a762f1f rememberAuthChoice: fix default values + prepare reconciliation with v2.0 (#2737) 2022-05-16 10:02:15 +00:00
Christophe Maudoux 5a29ce8ffe Update unit tests 2022-05-16 00:09:27 +02:00
Christophe Maudoux 2ea240c25c Improve template 2022-05-15 23:58:24 +02:00
Christophe Maudoux f59d245ff4 Clean code (#2746) 2022-05-15 23:41:29 +02:00
Christophe Maudoux 52bfd9f2c8 Improve unit test (#2745) 2022-05-15 23:41:23 +02:00
Christophe Maudoux a3c64ff3d7 Update unit test (#2745) 2022-05-15 12:08:30 +02:00
Christophe Maudoux e522ccb29e Propagate do not store password option to mail template (#2745) 2022-05-15 12:04:45 +02:00
Christophe Maudoux c3b58f78fd Fix coffee class toggle (#2745) 2022-05-15 12:03:57 +02:00
Christophe Maudoux 82d3d26eb5 Use option for mail reset (#2745) 2022-05-15 00:59:40 +02:00
Christophe Maudoux c5c1d0fb1c Improve coffee (#2745) 2022-05-15 00:58:41 +02:00
Christophe Maudoux 937706a1a7 Update templates (#2745) 2022-05-15 00:58:11 +02:00
Christophe Maudoux a303d96a7e Append logo (#2745) 2022-05-14 23:24:15 +02:00
Christophe Maudoux 6f6c87fcdf Append logo (#2745) 2022-05-14 23:24:01 +02:00
Christophe Maudoux 7424751919 Fix regex generator (#2733) 2022-05-13 23:28:09 +02:00
Christophe Maudoux 5490f60f74 Improve unit tests (#2733) 2022-05-13 23:27:52 +02:00
Christophe Maudoux dcc6f2cbc9 Display policy if enabled (#2733) 2022-05-13 22:08:28 +02:00
Christophe Maudoux a79d783257 Display password policy & use it to compile password regex (#2733) 2022-05-13 00:21:53 +02:00
Christophe Maudoux 3620725787 Improve log 2022-05-13 00:18:32 +02:00
Christophe Maudoux c979adb9d2 Display password policy only if enabled (#2733) 2022-05-13 00:18:32 +02:00
Clément OUDOT a9092eaa3f Remove debug code 2022-05-12 18:32:31 +02:00
Clément OUDOT 06682bf976 Remember if the checkbox was checked 2022-05-12 17:49:46 +02:00
Maxime Besson 4a0ba0fea9 Unit tests for #2726 2022-05-02 17:36:22 +02:00
Maxime Besson 9da6310037 Add method in test lib to check session attributes 2022-05-02 17:36:22 +02:00
Maxime Besson ef295ddd55 Add _2f session key after 2FA success (#2726) 2022-05-02 17:36:22 +02:00
Maxime Besson 64d8dcb793 Add log when 2FA is attempted (#2732) 2022-05-02 17:36:22 +02:00
Christophe Maudoux ab8cc97a52 Fix warning 2022-04-30 10:19:39 +02:00
Christophe Maudoux 96f6667f24 Propagate to MFA #1877 2022-04-30 10:19:39 +02:00
Maxime Besson 826308fbbf Fix check after saveConf (#2742) 2022-04-26 19:09:18 +02:00
David Coutadeur 901a6d3697 add RememberAuthChoice Plugin (references #2737) 2022-04-20 17:36:33 +00:00
Maxime Besson bc9698c660 Fix icons in register done email 2022-04-20 09:52:54 +02:00
Yadd ac105851ff make manifest 2022-04-08 12:16:54 +02:00
Christophe Maudoux d4b5608886 Typos 2022-04-05 23:32:36 +02:00
David Coutadeur e6cdeba1ef Fix init of ::Portal::Password::AD (#2735) 2022-03-31 09:51:17 +00:00
Maxime Besson bfd8e382c4 Fix unit test for #2730 2022-03-18 13:00:39 +01:00
Maxime Besson e1f6534bbe Add auth oidc hooks (#2730)
new hooks:
    oidcGenerateAuthenticationRequest
    oidcGenerateTokenRequest
    oidcGotIDToken
    oidcGotUserInfo
2022-03-18 11:59:10 +01:00
Maxime Besson fefc81d5fa Unit tests for OIDC auth hooks (#2730) 2022-03-18 11:59:10 +01:00
Maxime Besson 6ccdcec181 Unit tests for SAML auth hooks (#2730) 2022-03-18 11:59:10 +01:00
Maxime Besson 6d3f40b2fd add SAML Auth hook (#2730)
New hooks:
    samlGotAuthnResponse
    samlGenerateAuthnRequest
2022-03-18 11:58:28 +01:00
Christophe Maudoux 51819c8618 Update doc & manifests 2022-03-14 22:30:24 +01:00
Maxime Besson d39d65f92e Test and doc for #2725 2022-03-11 12:07:51 +01:00
Maxime Besson 6ed0e9c1b4 Add session data to oidcGenerateUserInfoResponse (#2725) 2022-03-11 12:07:51 +01:00
Yadd f2f0071cc8 Add de translation for mail 2022-03-10 16:19:10 +01:00
Yadd 724a23f44f Drop nl/ro translation from portal (insufficient coverage) 2022-03-10 16:15:24 +01:00
Christophe Maudoux 0e891d7d9c Append unit test (#2714) 2022-03-06 14:17:13 +01:00
Christophe Maudoux c389c6d509 Update version & typos (#2714) 2022-03-06 11:45:36 +01:00
Christophe Maudoux f6f9fe29cf Force reAuth from 2fManager (#2714) 2022-03-04 23:20:01 +01:00
Christophe Maudoux 50c312acc3 Avoid warning (#2716) 2022-03-04 23:15:09 +01:00
Christophe Maudoux 668b11b399 Typos 2022-03-03 23:29:48 +01:00
Christophe Maudoux 9c512f8e5b Test if a 2FA exists (#2716) 2022-03-03 23:05:19 +01:00
Yadd e5415338cb Update translations form transifex 2022-03-03 21:34:37 +01:00
Yadd fd610864ea Don't export id in Ajax response for authenticated users (#2709) 2022-03-03 18:55:02 +01:00
Yadd 1b42eaa363 Update translation from transifex (suggestions auto imported now) 2022-03-03 15:11:48 +01:00
Yadd c9be5b7db3 Add Hebrew language in manager 2022-03-03 15:07:01 +01:00
Yadd bd782db4cc Update fi translation from transifex 2022-03-01 21:48:53 +01:00
Christophe Maudoux 161a356c87 Update README 2022-02-19 18:50:07 +01:00
Christophe Maudoux fdad83378f Update authors 2022-02-19 18:36:14 +01:00
Clément OUDOT 4be3bde0bf Update version in Makefile.PL 2022-02-19 17:44:51 +01:00
Christophe Maudoux 5c7a69e57b Fix warnings (#2704) 2022-02-19 11:30:45 +01:00
Yadd 995ff5c023 Update tr translation from transifex 2022-02-18 16:28:38 +01:00
Yadd c830a15d19 Update cpan dependencies 2022-02-18 10:05:38 +01:00
Christophe Maudoux 2d19df844f Doc typos & build tree 2022-02-16 22:03:56 +01:00
Yadd b88a72c267 tidy 2022-02-16 17:43:29 +01:00
Yadd c0472d41db Update version 2022-02-16 17:31:45 +01:00
Yadd c590444d2f Update manifests 2022-02-16 17:31:05 +01:00
Yadd c161738b42 Update translations from transifex 2022-02-16 11:38:24 +01:00
Maxime Besson af7abe8d19 Merge branch 'fix-webauthn-1411' into v2.0 2022-02-16 10:38:09 +01:00
Christophe Maudoux 717eafdd2f Append unit test (#1714) 2022-02-13 18:07:17 +01:00
Yadd 9fd5231cef clean 2022-02-13 14:10:19 +01:00
Christophe Maudoux 5e285d5f60 Avoid useless warnings with OIDC 2022-02-12 22:42:03 +01:00
Christophe Maudoux 33d5c231b5 Typos & Doc 2022-02-12 22:18:32 +01:00
Yadd 35b4a82943 Update translations from transifex 2022-02-12 13:52:45 +01:00
Christophe Maudoux 9b7d900eca Fix unit tests (#2577) 2022-02-06 13:18:40 +01:00
Christophe Maudoux a1d3e159a3 Be more relevant (#2683) 2022-02-06 12:14:58 +01:00
Christophe Maudoux 5e3154b842 Merge branch 'v2.0' into 2683 2022-02-06 12:14:02 +01:00
Yadd d3389a7370 Render getModule() usable with connected users (fixes: #2664) 2022-02-05 11:55:17 +01:00
Yadd 7b71a0c764 Always initialize groups and hGroups (Fixes: #2476) 2022-02-05 10:21:32 +01:00
Christophe Maudoux caa6fc9df9 Make manifest & decrease logLevel 2022-02-03 21:04:10 +01:00
Christophe Maudoux 67aaadf51b Merge branch 'v2.0' into 2683 2022-02-03 21:00:45 +01:00
Yadd 42f3697a06 Fix versions 2022-02-03 11:20:47 +01:00
Maxime Besson 39570ee365 Add unit test for #2660 2022-02-03 11:13:25 +01:00
Maxime Besson e883860891 Add PE_PASSWORD_OK to stopping cases (#2660) 2022-02-03 11:13:25 +01:00
Yadd bf463b82af Combination: clarify result values (#2660) 2022-02-03 11:13:25 +01:00
Yadd 27df15774d Fix stop() call (#2660) 2022-02-03 11:13:25 +01:00
Yadd 00bf4a0d1a Add default stop() method for all Auth modules 2022-02-03 11:13:25 +01:00
Yadd 0df2d6dd30 No more display stop() errors 2022-02-03 11:13:25 +01:00
Yadd 50f25a9116 Fix stop() debug (#2660) 2022-02-03 11:13:25 +01:00
Yadd de79fc49b0 Reintroduce stop() method in LDAP/AD backends (#2660) 2022-02-03 11:13:25 +01:00
Yadd efe0ad448f Combination: accept "stop()" from authentication backends (#2660) 2022-02-03 11:13:25 +01:00
Maxime Besson bc684de4bb Improve LDAP error logs 2022-02-03 08:24:04 +01:00
Yadd e775782f95 Fix test (#2570) 2022-02-03 06:54:21 +01:00
Yadd 315e573d9f Drop #2594 workarounds in tests 2022-02-02 11:11:04 +01:00
Yadd 3f42113229 Remove double slashes in _pdata->{_url} + Don't overwrite $self-portal if already set (#2594) 2022-02-02 11:11:00 +01:00
Yadd 21f4ca1f35 [WAI] Add role for each message box (#2570) 2022-02-01 22:25:56 +01:00
Christophe Maudoux b4461667e3 Fix unit test (#2577) 2022-02-01 22:18:32 +01:00
Christophe Maudoux ab512da539 Typos & #1877 2022-02-01 22:09:25 +01:00
Yadd fe8107a88e Fix some placeholders (#2577) 2022-02-01 21:50:27 +01:00
Yadd 45ba9cb89d Add an aria-label for each trplaceholder (#2577) 2022-02-01 17:20:17 +01:00
Yadd fa703b54f9 [RGAA] add a role attribute into messages (#2570) 2022-02-01 17:09:31 +01:00
Yadd c3724a618f Fix versions 2022-02-01 17:09:31 +01:00
Christophe Maudoux 819b3e41c0 Update & improve unit test (#2689) 2022-01-26 22:54:45 +01:00
Christophe Maudoux 2ae9191e0a Fix DELETE session/my (#2689) & enable DELETE sessions/my only if globalLogout is on 2022-01-26 22:46:12 +01:00
Yadd f5ae2ef283 Update tr translation from transifex 2022-01-26 15:32:49 +01:00
Clément OUDOT 3c0f374c29 Merge branch 'v2.0' into issue-2673-CAS-multiple-service-URL 2022-01-23 16:41:18 +01:00
Christophe Maudoux 3ffb7aa607 Merge branch 'v2.0' into 2683 2022-01-22 21:19:42 +01:00
Clément OUDOT f7c1cc0103 Unit test for CAS multiple service URLs (#2673) 2022-01-22 16:58:09 +01:00
Clément OUDOT e567eeb6db Allow mutliple URLs for CAS service (#2673) 2022-01-22 16:57:08 +01:00
Clément OUDOT 43d69aa3f0 Remove check on password hash in DBI (#2672) 2022-01-22 15:45:27 +01:00
Maxime Besson fc2951a4b1 Fix U2F deletion (#1411) 2022-01-21 18:21:30 +01:00
Maxime Besson 2cc2a5804b Add unit tests for WebAuthn (#1411) 2022-01-21 18:19:56 +01:00