nextcloud/lib/private/Authentication
Lionel Elie Mamane f7f053b101 Return correct loginname in credentials,
even when token is invalid or has no password.

Returning the uid as loginname is wrong, and leads to problems when
these differ. E.g. the getapppassword API was creating app token with
the uid as loginname. In a scenario with external authentication (such
as LDAP), these tokens were then invalidated next time their underlying
password was checked, and systematically ceased to function.

Signed-off-by: Lionel Elie Mamane <lionel@mamane.lu>
2020-06-20 11:48:44 +02:00
..
Events Decouple remote wipe notifcation channels with events 2019-06-27 17:16:18 +02:00
Exceptions Throw an invalid token exception is token is marked outdated 2019-12-03 08:25:12 +00:00
Listeners Update unit tests 2019-07-16 13:32:44 +02:00
Login Use the actual password to update the tokens 2019-09-18 20:53:38 +00:00
LoginCredentials Return correct loginname in credentials, 2020-06-20 11:48:44 +02:00
Notifications Fix new core notifier 2019-07-15 15:14:58 +02:00
Token Check the user on remote wipe 2020-03-25 15:50:27 +00:00
TwoFactorAuth Allow 2FA to be setup on first login 2019-05-17 10:11:53 +02:00