nextcloud/lib/private/Authentication
Lionel Elie Mamane 2f75ba1adb 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-07-09 14:37:05 +00:00
..
Events Update license headers for 19 2020-04-29 11:57:22 +02:00
Exceptions Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
Listeners Clean up auth tokens when user is deleted 2020-06-16 08:03:45 +00:00
Login Update license headers for 19 2020-04-29 11:57:22 +02:00
LoginCredentials Return correct loginname in credentials, 2020-07-09 14:37:05 +00:00
Notifications Update license headers 2019-12-05 15:38:45 +01:00
Token Update license headers for 19 2020-04-29 11:57:22 +02:00
TwoFactorAuth Add visibility to all constants 2020-04-10 16:54:27 +02:00
WebAuthn Remember the webauthn name of devices 2020-05-12 12:08:38 +00:00