-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
occ user:add-app-password
should also work without the users login password
#26563
Comments
Regardless of what you enter as a password, it's not validated anyway. The generated app password works - even if the password is wrong. So the password check can as well be dropped. |
occ user:add-app-password
should also work without the users login password
The password is there because we validate it if the backend supports it. So it is validated on actual use. But sure feel free to shoot in a PR to make it optional. |
That's the thing: we don't. Steps to reproduce
Expected behavior
Actual behavior
|
So the generated token works although the provided password was wrong? If yes, we should probably drop all password related parts of the code. If the generated token doesn't work, we should probably validate the password correctly, no? |
This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions. |
That's correct. Tested on NC 21.0.3. |
The occ command user:add-app-password should work without the users login password.
If a admin needs to create a app password for a user for whatever reasons (e.g. in migration szenarios) it is quite unlikely that they know the login password from the users. The provisioning API and the graphical user management allow the admin to change the users password without knowing the old one. Why should the user:add-app-password be more strict?
Second, in case of SSO no user has a login password on Nextcloud. All passwords are handled by the IDP. The current behavior of the occ command makes it completely useless in any SSO environment.
Therefore I would suggest to remove the password input/check or at least make it optional.
The text was updated successfully, but these errors were encountered: