-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Skip password confirmation for ocs-apirequest #17434
Skip password confirmation for ocs-apirequest #17434
Conversation
Signed-off-by: Sergej Nikolaev <kinolaev@gmail.com>
ce77c97
to
c74e9f9
Compare
@kinolaev what requests are this actually? |
@rullzer, affected methods are:
There are methods with |
Hello @rullzer, do you agree that password confirmation must be removed for |
@kinolaev I was just busy with other stuff ;) So the reason we want password confirmation is that they are sensitive operations (possibly destructive). And there is no real reason that if you have an apppassword this check should be no longer valid. I would like it better if we could signal back that a password needs to be send as well and then the user just needs to enter their password also when doing this when sending an OCS-APIRequest. I'll think a bit how that can be done. |
any updates ? |
Closing as there has been no traction on this. |
Problem: OAuth client cannot use some part of nextcloud API 30 minutes after authentication because nextcloud requires password confirmation even for requests with
ocs-apirequest: true
andauthorization: Bearer ...
headers.Solution: Skip password confirmation for requests with mentioned headers (as already implemented in SecurityMiddleware)
I will add tests later If you find that this is right thing)
Also it will be good to make method
isOcsApiRequest
to not duplicate this checks in 2 middlewares. Is Request class right place for this?Related: #6476