-
Notifications
You must be signed in to change notification settings - Fork 2.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
Return 401 DummyBasicAuth in case of ajax call in public link page #23564
Conversation
By analyzing the blame information on this pull request, we identified @DeepDiver1975, @icewind1991 and @LukasReschke to be potential reviewers |
*/ | ||
public function __construct($config) { | ||
public function __construct($config, $request) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we enforce IRequest here? (while at it maybe also IConfig)?
👍 |
Will do later, setting to "Developing" |
5ea1162
to
ba69a90
Compare
@PVince81 Adjusted the code according to my remarks :) |
@MorrisJobke @schiesbn Mind reviewing? 🚀 |
Tested and works 👍 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Very crude due to
header
. Need to take more time to look into how to use Sabre's request/response, or might need a bit of refactoring / moving around code to make it look like https://github.com/owncloud/core/blob/v9.0.0/apps/dav/lib/connector/sabre/auth.php#L165 which happens in theauth
method, butPublicAuth
doesn't have it...@LukasReschke what do you think ?
When using the steps from #23066 (comment), instead of showing the browser's basic auth dialog it will refresh the page, and correctly show the password field page again.