summaryrefslogtreecommitdiffstats
path: root/lib/public/Authentication
Commit message (Collapse)AuthorAgeFilesLines
* 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-067-12/+12
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #6177 from nextcloud/properly-add-slo-urlMorris Jobke2017-08-261-7/+6
|\ | | | | Properly allow \OCP\Authentication\IApacheBackend to specify logout URL
| * Properly allow \OCP\Authentication\IApacheBackend to specify logout URLLukas Reschke2017-08-181-7/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Any `\OCP\Authentication\IApacheBackend` previously had to implement `getLogoutAttribute` which returns a string. This string is directly injected into the logout `<a>` tag, so returning something like `href="foo"` would result in `<a href="foo">`. This is rather error prone and also in Nextcloud 12 broken as the logout entry has been moved with 054e161eb5f4a5c5c13ee322ae8e93ce66f01b13 inside the navigation manager where one cannot simply inject attributes. Thus this feature is broken in Nextcloud 12 which effectively leads to the bug described at nextcloud/user_saml#112, people cannot logout anymore when using SAML using SLO. Basically in case of SAML you have a SLO url which redirects you to the IdP and properly logs you out there as well. Instead of monkey patching the Navigation manager I decided to instead change `\OCP\Authentication\IApacheBackend` to use `\OCP\Authentication\IApacheBackend::getLogoutUrl` instead where it can return a string with the appropriate logout URL. Since this functionality is only prominently used in the SAML plugin. Any custom app would need a small change but I'm not aware of any and there's simply no way to fix this properly otherwise. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | Allow 2FA providers to specify their custom CSPChristoph Wurst2017-08-261-0/+38
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Thows exception if password not availableMorris Jobke2017-05-122-0/+37
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* fix @since annotations (9.1->12)Christoph Wurst2017-01-113-7/+7
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* add @since annotations and document methodsChristoph Wurst2017-01-112-0/+14
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* add login credential storeChristoph Wurst2017-01-113-0/+122
| | | | 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-212-2/+4
|
* Update license headersLukas Reschke2016-05-261-1/+0
|
* Add two factor auth to coreChristoph Wurst2016-05-231-0/+93
|
* Move \OCP\Authentication to PSR-4 (#24632)Roeland Douma2016-05-171-0/+64