summaryrefslogtreecommitdiffstats
path: root/apps/twofactor_backupcodes/tests
Commit message (Collapse)AuthorAgeFilesLines
* Provide initial stateRoeland Jago Douma2019-01-291-1/+6
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Switch to OCP background jobsRoeland Jago Douma2019-01-141-0/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add job to check users for backup code remindersRoeland Jago Douma2018-10-022-0/+198
| | | | | | | | | Now that we can enforce 2FA we also should notify users that have enabled 2FA but do not yet have backup codes generated. This adds a repair step that inserts a background job to do this. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Clear notification to generate backup code once codes are generatedRoeland Jago Douma2018-10-012-0/+96
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Generate backups code notification if not enable but 2fa isRoeland Jago Douma2018-10-013-0/+380
| | | | | | | | | | | | Generate a notification to generate backup codes if you enable an other 2FA provider but backup codes are not yet generated. * Add event listner * Insert background job * Background job tests and emits notification every 2 weeks * If the backup codes are generated the next run will remove the job Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix integration test execution on DronChristoph Wurst2018-08-212-2/+2
| | | | | | | | | Apparently the Nextcloud server ignores tests that have `Integration` in their fully-qualified class name, hence the backup codes integration tests were removed. This moves them up one directory (out of `Integration`) to fix that. Real unit tests remain in the `Unit` directory. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add an integration test that inserts long back codes valuesChristoph Wurst2018-08-211-0/+9
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix state propragation of the backup codes providerChristoph Wurst2018-08-014-38/+225
| | | | | | | | | | | | Starting with Nextcloud 14, the server knows the enabled/disabled state of 2fa providers. While it will query that information if it's unknown (on first use), it won't notice any changes. Thus, providers have to propagate that information themselves. Ref https://github.com/nextcloud/twofactor_totp/pull/263 Ref https://github.com/nextcloud/twofactor_u2f/pull/210 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix "Undefined method setExpectedException()"Joas Schilling2018-01-241-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix testsJoas Schilling2017-06-201-6/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix backup codes activity typeChristoph Wurst2017-05-181-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Move activities test codeChristoph Wurst2017-05-183-288/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Hide 2FA backup codes if no other 2FA providers are enabledChristoph Wurst2017-05-021-5/+56
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* ignore code we're unable to testChristoph Wurst2017-01-181-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* test activity providerChristoph Wurst2017-01-181-0/+131
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* increase GenericProvider's test coverageChristoph Wurst2017-01-181-9/+35
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* use constant and clean up unit testChristoph Wurst2017-01-161-18/+17
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Increase 2fa backup codes entropyChristoph Wurst2017-01-161-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* fix minor issuesChristoph Wurst2016-12-192-3/+8
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* push activity when backup codes are generatedChristoph Wurst2016-12-191-2/+31
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Publish, parse and filter 2FA activitiesChristoph Wurst2016-12-193-0/+263
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix unit testsJoas Schilling2016-11-181-1/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Do not use underscores in PSR4 namespaces of the backup codes appChristoph Wurst2016-10-035-15/+15
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix twofactor_backupcodesJoas Schilling2016-09-122-5/+3
|
* Fix more sniffingJoas Schilling2016-09-121-3/+3
|
* Fix apps warningsRoeland Jago Douma2016-09-071-2/+2
|
* add 2fa backup codes appChristoph Wurst2016-09-055-0/+629
* add backup codes app unit tests * add integration tests for the backup codes app