Commit graph

16 commits

Author SHA1 Message Date
Christian Mollekopf
f3a19e0a43 Generate a 32 character long totp secret
This provides 160bit length instead of the previous 80, as
recommended by the rfc4226 (hotp), which is the basis for rfc6238 (totp).
128 bit is required by the rfc, and e.g. FreeOTP complains with an 80bit secret.
2025-02-25 12:53:26 +01:00
Aleksander Machniak
a2119c58f6 kolab_2fa: Store driver config with the "token"
This way if we change the configuration registered OTP apps will still work.
2024-09-06 12:39:58 +02:00
Aleksander Machniak
4f8869529e Fix fatal error when parsing an event with broken recurrence 2024-04-18 13:53:13 +02:00
Aleksander Machniak
cbc8078c79 Fix more phpstan code issues 2024-04-16 08:58:06 +02:00
Aleksander Machniak
5271b6e787 Use consistent PHP code style 2024-01-24 11:24:41 +01:00
Aleksander Machniak
70810e1f88 kolab_2fa: Bump spomky-labs/otphp to version 10
Fixes various PHP8 warnings
2023-06-15 12:26:53 +02:00
Aleksander Machniak
84f10a366b Fix PHP8 warnings 2023-06-14 15:10:51 +02:00
Aleksander Machniak
8430605f6c Fix PHP8 warnings 2023-06-14 15:05:00 +02:00
Aleksander Machniak
096b7a8181 Fix PHP8 warnings 2023-06-12 12:07:58 +02:00
Aleksander Machniak
669feb6b02 Comment out console() calls, CS fixes 2016-01-28 17:12:23 +01:00
Thomas Bruederli
3e52521c3e Finished LDAP storage backend to work with FreeIPA ipaToken subclasses
Resolves T421
2015-06-11 16:38:47 +02:00
Thomas Bruederli
7f3a76fdad Refactor the 2FA plugin/drivers/storage to allow multiple factors of the same type 2015-06-10 18:20:08 +02:00
Thomas Bruederli
358ac3e33f Implement LDAP storage backend for 2-factor-auth (T421).
Allow kolab_auth plugin to populate 'kolab_2fa_factors' config option through 'kolab_auth_role_settings'
and hereby define the active authentication factors from the one LDAP query.
2015-06-09 09:58:32 +02:00
Thomas Bruederli
8e51918f64 Small refactoring of the 2FA storage layer + also use it for determining the active factors 2015-06-08 15:58:52 +02:00
Thomas Bruederli
c83d6d7341 Minor code cleanup 2015-06-04 16:18:56 +02:00
Thomas Bruederli
1b10eb060a Initial version of the Kolab 2-Factor-Authentication plugin.
This already includes:
- Drivers supporting TOTP, HOTP, Yubikey
- Storage backend abstraction
- Additional authentication step at login
- Settings section to provision and remove authentication factors
- Sample config with comments

Resolves T415
2015-06-04 15:53:04 +02:00