]> source.dussan.org Git - nextcloud-server.git/commit
Return correct loginname in credentials,
authorLionel Elie Mamane <lionel@mamane.lu>
Sun, 7 Jun 2020 12:15:10 +0000 (14:15 +0200)
committerLionel Elie Mamane <lionel@mamane.lu>
Sat, 20 Jun 2020 09:52:42 +0000 (11:52 +0200)
commit80973cd60b47eb241382ecec0fc1777921c96100
tree90c0da3c68222cae790ccd7fe0627fc9fcf349d0
parent708bd38d6c5a203eb5e2dd455f8fe7fec4724222
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>
lib/private/Authentication/LoginCredentials/Store.php