Граф коммитов

28 Коммитов

Автор SHA1 Сообщение Дата
Christoph Wurst 0bb0a8e61b
Migrate to Vue
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2018-10-22 16:22:00 +02:00
Christoph Wurst d2342f0b85 Migrate personal settings to new API
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2018-10-02 18:09:33 +02:00
Christoph Wurst 5a813aa8eb Adapt to server changes
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2018-10-01 23:20:57 +02:00
Christoph Wurst 3afdfe856c Fix authentication/login registration id missing property
As of af674fec3f, the passed
registrations array is stripped and only u2f properties are returned. Hence, the `id` prop gets removed and
we have to look it up in the original data instead.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2018-10-01 15:58:56 +02:00
Christoph Wurst 0fac0c262d
Fix wrong provider registry updates.
This is a multi-device provider, so adding a device does
not automatically mean that the provider gets enabled (there
might be an existing device), nor that removing a device disables
the provider (there might be remaining devices).

This adds an additional check to count the number of devices
*after* the state change to only react when the first device
has been added and when the last one is removed.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2018-08-02 12:14:34 +02:00
Christoph Wurst 24d2da94e4
Fix state propagation to the server registry
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2018-07-31 08:35:56 +02:00
Christoph Wurst 9259ca5622
Refactor app to use the event system to act on state changes
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2018-07-31 08:05:20 +02:00
Christoph Wurst a275ac7f9f
Add missing scalar type hint
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2018-03-27 08:48:39 +02:00
Christoph Wurst 2c8b6f6ff3
Add strict types and fix tests
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2018-03-13 12:59:56 +01:00
Christoph Wurst acc7a691a6
Add php7 primitive type hints
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2018-03-13 12:54:43 +01:00
Christoph Wurst ede5d0d882
List U2F settings in security section
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2017-11-27 17:33:54 +01:00
Christoph Wurst d9225e4727
Fix activity type
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2017-05-16 10:12:51 +02:00
Christoph Wurst 16f760d49e
Add possibility to add multiple U2F devices
Users should be able to add as many devices as they like, hence
the interface should allow to list added devices and have a button
to add new ones. To identify devices later, users can give names
to devices.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2017-04-10 08:14:52 +02:00
Christoph Wurst 97376a3dbd
try to structure the code better and require password confirmation
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2017-01-23 10:25:45 +01:00
Christoph Wurst f7fb7700a3
add some unit tests
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2016-12-19 17:46:32 +01:00
Christoph Wurst 3321e0dc84 Merge pull request #17 from nextcloud/activities
publish activities when a device is added/removed
2016-12-19 14:55:48 +01:00
Christoph Wurst 233c56cfe9
make Joas happy by adding some comments :-) 2016-12-19 14:41:50 +01:00
Christoph Wurst 4f86bce4b6
replace IDb with IDBConnection
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2016-12-19 11:53:00 +01:00
Christoph Wurst 69a4ca70af publish activities when a device is added/removed
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2016-12-13 14:37:08 +01:00
Christoph Wurst d05eb76b2c
Use valid PSR4 namespace
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2016-11-07 14:21:00 +01:00
Christoph Wurst 617d159185
u2f logo added 2016-08-26 23:13:23 +02:00
Christoph Wurst 243465006a
use raw protocol + host to build appId instead of base url 2016-08-26 21:39:47 +02:00
Christoph Wurst 022e8ea063 allow users to enable/disable U2F via their personal settings 2016-08-26 15:26:23 +02:00
Christoph Wurst b2ecea2c82 store u2f registration in the database 2016-08-26 14:45:53 +02:00
Christoph Wurst 77ae70eac9
fail gracefully if U2F verification errors occur 2016-08-26 12:49:28 +02:00
Christoph Wurst df1a61a1a8
implement U2F challenge verification 2016-08-26 11:51:53 +02:00
Christoph Wurst c9d5910c72
refactor code into U2FManger 2016-08-26 11:21:03 +02:00
Christoph Wurst f0181c5868
quick and dirty U2F registration 2016-08-26 10:58:32 +02:00