Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fix(session): Avoid race condition for cache::get() vs. cache::hasKey() | Joas Schilling | 2024-04-29 | 1 | -6/+6 |
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> | ||||
* | fix(deps): Bump web-auth/webauthn-lib from 3.3.9 to 4.8.5 | Ferdinand Thiessen | 2024-04-16 | 1 | -24/+24 |
| | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de> | ||||
* | fix: Fix new psalm errors from update | Côme Chilliet | 2024-04-08 | 1 | -9/+7 |
| | | | | | | | Not sure about the SimpleContainer modification, let’s see what CI says about that. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com> | ||||
* | fix: Apply new coding standard to all files | Côme Chilliet | 2024-04-02 | 9 | -11/+11 |
| | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com> | ||||
* | feat(perf): add cache for authtoken lookup | Benjamin Gaussorgues | 2024-02-28 | 2 | -63/+78 |
| | | | | Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com> | ||||
* | feat: rename users to account or person | Vincent Petry | 2024-02-13 | 1 | -1/+1 |
| | | | | | | Replace translated text in most locations Signed-off-by: Vincent Petry <vincent@nextcloud.com> | ||||
* | chore: Fix missing template parameter for IEventListener | Côme Chilliet | 2024-01-30 | 2 | -0/+2 |
| | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com> | ||||
* | Import OCP IToken as OCPIToken to avoid a name clash in lib/private | Côme Chilliet | 2024-01-11 | 3 | -65/+65 |
| | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com> | ||||
* | Use OCP version of IToken in AppPasswordCreatedEvent | Côme Chilliet | 2024-01-11 | 1 | -6/+4 |
| | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com> | ||||
* | Use IToken from OCP instead of OC | Côme Chilliet | 2024-01-11 | 3 | -0/+3 |
| | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com> | ||||
* | Suppress or fix psalm errors related to InvalidTokenException | Côme Chilliet | 2024-01-11 | 2 | -4/+6 |
| | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com> | ||||
* | Always catch OCP versions of authentication exceptions | Côme Chilliet | 2024-01-11 | 4 | -10/+11 |
| | | | | | | And always throw OC versions for BC Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com> | ||||
* | AppAPI: allowed to bypass Two-Factor | Alexander Piskun | 2023-12-28 | 1 | -2/+2 |
| | | | | Signed-off-by: Alexander Piskun <bigcat88@icloud.com> | ||||
* | chore: apply changes from Nextcloud coding standards 1.1.1 | Joas Schilling | 2023-11-23 | 22 | -92/+92 |
| | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com> | ||||
* | fix: Show error message when CSRF check fails at login | Christoph Wurst | 2023-11-08 | 1 | -0/+5 |
| | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> | ||||
* | Allow passing null to PublicKeyToken::setScope, fixes tests | Côme Chilliet | 2023-10-23 | 1 | -2/+2 |
| | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com> | ||||
* | Improve docblock annotations for tokens and their exceptions | Côme Chilliet | 2023-10-23 | 3 | -2/+5 |
| | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com> | ||||
* | Use more precise typing for setScope method parameter | Côme Chilliet | 2023-10-23 | 1 | -2/+2 |
| | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com> | ||||
* | Make sure that OC interfaces returns OC interfaces for backward compatibility | Côme Chilliet | 2023-10-23 | 2 | -0/+26 |
| | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com> | ||||
* | Move Exceptions used in OCP to OCP | Côme Chilliet | 2023-10-23 | 3 | -33/+12 |
| | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com> | ||||
* | Align PublicKeyToken with interface changes | Côme Chilliet | 2023-10-23 | 1 | -10/+6 |
| | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com> | ||||
* | Move IToken and IProvider::getToken to OCP | Côme Chilliet | 2023-10-20 | 1 | -104/+2 |
| | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com> | ||||
* | fix(twofactor): avoid error in pgsql for duplicate entry | Benjamin Gaussorgues | 2023-10-06 | 1 | -20/+17 |
| | | | | Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com> | ||||
* | Fix typo | Lucas Azevedo | 2023-08-25 | 1 | -1/+1 |
| | | | | Signed-off-by: Lucas Azevedo <lhs_azevedo@hotmail.com> | ||||
* | Fixes from static analysis | Lucas Azevedo | 2023-08-25 | 1 | -3/+3 |
| | | | | Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com> Signed-off-by: Lucas Azevedo <lhs_azevedo@hotmail.com> | ||||
* | Add last-used-before option | Lucas Azevedo | 2023-08-25 | 4 | -0/+24 |
| | | | | Signed-off-by: Lucas Azevedo <lhs_azevedo@hotmail.com> | ||||
* | docs: remove superfluous phpdocs | Daniel Kesselberg | 2023-08-10 | 1 | -9/+1 |
| | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de> | ||||
* | fix!: Remove legacy event dispatching Symfony's GenericEvent from 2FA Manager | Joas Schilling | 2023-07-27 | 1 | -14/+1 |
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> | ||||
* | chore: Replace \OC::$server->query with \OCP\Server::get in /lib | Christoph Wurst | 2023-07-06 | 1 | -2/+2 |
| | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> | ||||
* | Fix event names of 2FA related typed events | Joas Schilling | 2023-07-03 | 3 | -3/+13 |
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> | ||||
* | Merge branch 'master' into enh/type-iconfig-getter-calls | Côme Chilliet | 2023-04-20 | 1 | -51/+55 |
|\ | | | | | Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> | ||||
| * | fix(auth): Run token statements in atomic transaction | Christoph Wurst | 2023-04-12 | 1 | -51/+55 |
| | | | | | | | | | | | | All or nothing Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> | ||||
* | | Use typed version of IConfig::getSystemValue as much as possible | Côme Chilliet | 2023-04-05 | 2 | -6/+6 |
|/ | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com> | ||||
* | Fix types for reading and writing config values | jld3103 | 2023-04-05 | 1 | -2/+2 |
| | | | | Signed-off-by: jld3103 <jld3103yt@gmail.com> | ||||
* | Merge pull request #36033 from ↵ | Côme Chilliet | 2023-03-15 | 1 | -1/+11 |
|\ | | | | | | | | | nextcloud/invalidateTokensWhenDeletingOAuthClientMaster [master] invalidate existing tokens when deleting an oauth client | ||||
| * | public interface to invalidate tokens of user | Artur Neumann | 2023-03-14 | 1 | -1/+11 |
| | | | | | | | | Signed-off-by: Artur Neumann <artur@jankaritech.com> | ||||
* | | Don't try to hash a nonexisting password | Ember 'n0emis' Keske | 2023-03-13 | 1 | -1/+1 |
|/ | | | | | | Allows to log-in via a passwordless authentication provider, eg SSO Signed-off-by: Ember 'n0emis' Keske <git@n0emis.eu> | ||||
* | fix(authentication): Handle null or empty string password hash | Joas Schilling | 2023-02-10 | 1 | -1/+1 |
| | | | | | | | | This can happen when the auth.storeCryptedPassword config is used, which previously errored with: Hasher::verify(): Argument #2 ($hash) must be of type string, null given Signed-off-by: Joas Schilling <coding@schilljs.com> | ||||
* | Merge pull request #36621 from ↵ | Joas Schilling | 2023-02-10 | 1 | -1/+30 |
|\ | | | | | | | | | nextcloud/perf/noid/only-check-for-token-when-it-can-actually-be fix(performance): Only search for auth tokens when the provided login… | ||||
| * | fix(authentication): Check minimum length when creating app tokens | Joas Schilling | 2023-02-09 | 1 | -2/+10 |
| | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> | ||||
| * | fix(performance): Only search for auth tokens when the provided login is ↵ | Joas Schilling | 2023-02-08 | 1 | -1/+22 |
| | | | | | | | | | | | | long enough Signed-off-by: Joas Schilling <coding@schilljs.com> | ||||
* | | fix(authtoken): Store only one hash for authtokens with the current password ↵ | Julius Härtl | 2023-02-09 | 2 | -1/+50 |
|/ | | | | | | per user Signed-off-by: Julius Härtl <jus@bitgrid.net> | ||||
* | composer run cs:fix | Côme Chilliet | 2023-01-20 | 42 | -44/+0 |
| | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com> | ||||
* | Merge pull request #36001 from nextcloud/validate-user-tz | Vincent Petry | 2023-01-11 | 1 | -1/+5 |
|\ | | | | | Validate user timezone given from login data before saving it | ||||
| * | Validate user timezone given from login data before saving it | Thomas Citharel | 2023-01-04 | 1 | -1/+5 |
| | | | | | | | | | | | | Follow-up to #36000 Signed-off-by: Thomas Citharel <tcit@tcit.fr> | ||||
* | | fix(authentication): Update the token when the hash is null or can not be ↵ | Joas Schilling | 2023-01-09 | 1 | -4/+21 |
| | | | | | | | | | | | | verified Signed-off-by: Joas Schilling <coding@schilljs.com> | ||||
* | | fix(authentication): Only hash the new password when needed | Joas Schilling | 2023-01-09 | 1 | -2/+6 |
| | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> | ||||
* | | fix(authentication): Invert the logic to the original intention | Joas Schilling | 2023-01-09 | 1 | -2/+3 |
| | | | | | | | | | | | | | | We need to store the new authentication details when the hash did **not** verify the old password. Signed-off-by: Joas Schilling <coding@schilljs.com> | ||||
* | | fix(authentication): Only verify each hash once | Joas Schilling | 2023-01-09 | 1 | -2/+4 |
| | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> | ||||
* | | Merge pull request #33898 from nextcloud/fix/authtoken-password-update | Julius Härtl | 2023-01-05 | 2 | -4/+22 |
|\ \ | | | | | | | PublickKeyTokenProvider: Fix password update routine with password hash |