Commit Graph

174 Commits (08e62bece99ab59624b363aec64400a499991561)

Author SHA1 Message Date
Joas Schilling bc4a102f52
fix(session): Avoid race condition for cache::get() vs. cache::hasKey() 2 years ago
Côme Chilliet ec5133b739 fix: Apply new coding standard to all files 2 years ago
Benjamin Gaussorgues d1189f923c
feat(perf): add cache for authtoken lookup 2 years ago
Côme Chilliet a526a382bf
Import OCP IToken as OCPIToken to avoid a name clash in lib/private 2 years ago
Côme Chilliet 8fc39aeb1c Use IToken from OCP instead of OC 2 years ago
Côme Chilliet 95ea6188dc Suppress or fix psalm errors related to InvalidTokenException 2 years ago
Côme Chilliet eee9f1eec4 Always catch OCP versions of authentication exceptions 2 years ago
Joas Schilling aa5f037af7
chore: apply changes from Nextcloud coding standards 1.1.1 2 years ago
Côme Chilliet d8b42c6131
Allow passing null to PublicKeyToken::setScope, fixes tests 2 years ago
Côme Chilliet 33a24134a7
Improve docblock annotations for tokens and their exceptions 2 years ago
Côme Chilliet 58a57a714e
Use more precise typing for setScope method parameter 2 years ago
Côme Chilliet 356f0291a2
Align PublicKeyToken with interface changes 2 years ago
Côme Chilliet f94fb33062
Move IToken and IProvider::getToken to OCP 2 years ago
Lucas Azevedo 2a36acfc2b Fix typo 2 years ago
Lucas Azevedo c93b1634d3
Fixes from static analysis 2 years ago
Lucas Azevedo fe9b9c1955 Add last-used-before option 2 years ago
Christoph Wurst 5eb768ac5e
fix(auth): Run token statements in atomic transaction 3 years ago
Côme Chilliet 426c0341ff
Use typed version of IConfig::getSystemValue as much as possible 3 years ago
Artur Neumann f634badf12
public interface to invalidate tokens of user 3 years ago
Ember 'n0emis' Keske 6881d2f2f1
Don't try to hash a nonexisting password 3 years ago
Joas Schilling 6417ea0265
fix(authentication): Handle null or empty string password hash 3 years ago
Julius Härtl 580feecdbf
fix(authtoken): Store only one hash for authtokens with the current password per user 3 years ago
Joas Schilling 7a85a1596e
fix(authentication): Check minimum length when creating app tokens 3 years ago
Joas Schilling 03a585ab4f
fix(performance): Only search for auth tokens when the provided login is long enough 3 years ago
Côme Chilliet f5c361cf44
composer run cs:fix 3 years ago
Joas Schilling 2fb4dac7ad
fix(authentication): Update the token when the hash is null or can not be verified 3 years ago
Joas Schilling 28b18d561c
fix(authentication): Only hash the new password when needed 3 years ago
Joas Schilling c5bb19641c
fix(authentication): Invert the logic to the original intention 3 years ago
Joas Schilling 55d8aec759
fix(authentication): Only verify each hash once 3 years ago
Joas Schilling b4a29644cc
Add a const for the max user password length 3 years ago
Marcel Klehr adfe367106
PublickKeyTokenProvider: Fix password update routine with password hash 3 years ago
Christoph Wurst c5922e67d3
Run session token renewals in a database transaction 3 years ago
Carl Schwan ef31396727
Mark method as deprecated 3 years ago
Thomas Citharel 3ce1996d5e
Add back TokenCleanupJob to invalidate old temporary tokens 3 years ago
Julius Härtl 9d1ec582ba
Do not update passwords if nothing changed 3 years ago
Carl Schwan 702445ba3b
Handle one time password better 3 years ago
luz paz 368f83095d Fix typos in lib/private subdirectory 3 years ago
Carl Schwan d5c23dbb9f Move CappedMemoryCache to OCP 4 years ago
Carl Schwan 1c23c029af Handler large passwords 4 years ago
Carl Schwan cdf3b60555 Handle one time passwords 4 years ago
Joas Schilling 7b3e2217de
Fix user agent trimming on installation 4 years ago
Joas Schilling d683e0d3d1
Automatically cut the token name on the first level 4 years ago
Joas Schilling a0c7798c7d
Limit the length of app password names 4 years ago
Julius Härtl 553cb499b2
Rotate token after fallback 4 years ago
Julius Härtl 81f8719cc0
Add fallback routines for empty secret cases 4 years ago
Joas Schilling 397b9098e8
Also cache non-existing to reuse it 4 years ago
Joas Schilling c0ba89ecc9
Remove default token which is deprecated since Nextcloud 13 4 years ago
Côme Chilliet 113756db30
Fix ArrayAccess and JsonSerializable return types 4 years ago
Christoph Wurst 7dd7256cfe
Prevent duplicate auth token activity updates 4 years ago
Christoph Wurst 01b8291c76
Type the autentication provider passwords as nullable strings 4 years ago