Commit Graph

185 Commits (2bdc97741cd42843f85750421cba032942d860ed)

Author SHA1 Message Date
Daniel Kesselberg af6de04e9e
style: update codestyle for coding-standard 1.2.3 1 year ago
Christoph Wurst 5100e3152d
feat(auth): Clean-up unused auth tokens and wipe tokens 1 year ago
Arthur Schiwon 99182aac37
fix(Token): take over scope in token refresh with login by cookie 1 year ago
Arthur Schiwon 6a783d9b08
fix(Session): avoid race conditions on clustered setups 2 years ago
Arthur Schiwon f6d6efef3a
refactor(Token): introduce scope constants 2 years ago
Arthur Schiwon 340939e688
fix(Session): avoid password confirmation on SSO 2 years ago
Andy Scherzinger dae7c159f7
chore: Add SPDX header 2 years ago
Christoph Wurst bcc02a3c71
fix(auth): Update authtoken activity selectively 2 years ago
Julius Härtl 04780ae30a fix: Always set last activity if we update the row of an authtoken anyways 2 years ago
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