Open TekkertheChaot opened 8 months ago
Thank you :+1:
fyi @ChristophWurst @juliushaertl
More details on the issue: Testing with a user whoose ID is user1
.
User1
worksUser1
in personal security settings produces a row in oc_authtoken
with uid=user1
and login_name=User1
.-H "Authorization: Bearer APP_PASSWD"
works-u User1:APP_PASSWD
works-u user1:APP_PASSWD
fails. Log message: "App token login name does not match" "data":{"tokenLoginName":"User1","sessionLoginName":"user1","app":"core","user":"user1"}
@ChristophWurst @juliusknorr
login_name
related with the stored app password?
Wdyt?
⚠️ This issue respects the following points: ⚠️
Bug description
I just tried to connect to my NC instance using an app token and the native login flow. Checking Nextcloud logs i noticed following entry:
I Initially thought this was a client problem that i have reported here but further investigation led to the possibility of this beeing unexpected behaviour on the server side. (all mentioned tokens have been deleted before publishing this issue)
It seems, that the culprit in my case is a combination of how the App token is generated and how the login process initiates the user context. In detail:
These "invalid" app tokens can't be used in my case in the native flow but is still usable for WebDAV authentication.
I am not sure if this is intended, a conflict in how different login flows are handled or something else entirely.
Steps to reproduce
Expected behavior
Login should be possible using the native app loging flow but it gets rejected. Although this login CAN be used in other authentication flows (I tested WebDAV).
Installation method
Official All-in-One appliance
Nextcloud Server version
28
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.2
Web server
Nginx
Database engine version
MySQL
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
EDIT 08.07.2024: The link and share have expired. If you need them for triage, hit me up!
Additional info
No response