aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Authentication/TwoFactorAuth
Commit message (Collapse)AuthorAgeFilesLines
* fix!: Remove legacy event dispatching Symfony's GenericEvent from 2FA ManagerJoas Schilling2023-07-271-11/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix event names of 2FA related typed eventsJoas Schilling2023-07-039-4/+302
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* composer run cs:fixCôme Chilliet2023-01-2011-11/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix wrong types in phpdoc for twofactor registryCarl Schwan2022-10-121-1/+1
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-0416-33/+17
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Add real events for enabled 2fa providers for usersRoeland Jago Douma2021-03-222-0/+130
| | | | | | | * Shiny new events * Listener to still emit the old event Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Deprecate all remaining event constantsChristoph Wurst2021-02-092-0/+12
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-051-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-241-2/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Emit an event for every disabled 2FA provider during cleanupChristoph Wurst2020-06-161-0/+52
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all constantsChristoph Wurst2020-04-102-4/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-1010-12/+0
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove trailing whitespaces from commentsChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-0513-23/+45
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add event dispatcher to OCPChristoph Wurst2019-06-251-1/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Allow 2FA to be setup on first loginRoeland Jago Douma2019-05-173-0/+118
| | | | | | | | | Once 2FA is enforced for a user and they have no 2FA setup yet this will now prompt them with a setup screen. Given that providers are enabled that allow setup then. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix activatable/deactivatable 2fa provider interface typosChristoph Wurst2018-12-032-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Consolidate personal two-factor provider settingsChristoph Wurst2018-10-022-0/+90
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Let 2FA providers provide their custom icons (dark/light)Christoph Wurst2018-10-011-0/+55
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Emit event on enablign or disabling of 2FA providerRoeland Jago Douma2018-10-012-0/+66
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Only allow 2FA state changs if providers support the operationChristoph Wurst2018-09-251-0/+15
| | | | | | | | Ref https://github.com/nextcloud/server/issues/11019. Add `twofactorauth:cleanup` command Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add public interfaces for activable/deactivable 2FA providersChristoph Wurst2018-09-102-0/+102
| | | | | | | Fixes https://github.com/nextcloud/server/issues/11018. Required for https://github.com/nextcloud/server/issues/11019. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Make 2FA providers statefulChristoph Wurst2018-06-201-0/+65
| | | | | | | | | | | This adds persistence to the Nextcloud server 2FA logic so that the server knows which 2FA providers are enabled for a specific user at any time, even when the provider is not available. The `IStatefulProvider` interface was added as tagging interface for providers that are compatible with this new API. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Strict 2FARoeland Jago Douma2018-03-263-8/+12
| | | | | | | | * make OCP\Authentication\TwoFactorAuth strict * scalar types * return types Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Dispatch event on twofactor failure and successRoeland Jago Douma2018-01-251-0/+6
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headersMorris Jobke2017-11-062-4/+6
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Allow 2FA providers to specify their custom CSPChristoph Wurst2017-08-261-0/+38
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* fix coding style and increase code coverageChristoph Wurst2017-01-111-12/+13
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update TwoFactorException.phpCornelius Kölbel2017-01-111-2/+2
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Add a TwoFactorExceptionCornelius Kölbel2017-01-111-0/+37
| | | | | | | | | | | A Two Factor third party App may throw a TwoFactorException() with a more detailed error message in case the authentication fails. The 2FA Controller will then display the message of this Exception to the user. Working on #26593 Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Fix othersJoas Schilling2016-07-211-1/+2
|
* Update license headersLukas Reschke2016-05-261-1/+0
|
* Add two factor auth to coreChristoph Wurst2016-05-231-0/+93