Skip to content
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

Merged
merged 2 commits into from
Mar 31, 2016

Conversation

PVince81
Copy link
Contributor

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 the auth method, but PublicAuth 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.

@mention-bot
Copy link

By analyzing the blame information on this pull request, we identified @DeepDiver1975, @icewind1991 and @LukasReschke to be potential reviewers

@PVince81 PVince81 changed the title Return 401 DummyBasicAuth in case of ajax call Return 401 DummyBasicAuth in case of ajax call in public link page Mar 24, 2016
@PVince81 PVince81 added this to the 9.1-current milestone Mar 24, 2016
*/
public function __construct($config) {
public function __construct($config, $request) {
Copy link
Member

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)?

@LukasReschke
Copy link
Member

👍

@PVince81
Copy link
Contributor Author

Will do later, setting to "Developing"

@PVince81 PVince81 self-assigned this Mar 29, 2016
@LukasReschke LukasReschke force-pushed the public-ajaxbasicauth branch from 5ea1162 to ba69a90 Compare March 31, 2016 17:33
@LukasReschke
Copy link
Member

@PVince81 Adjusted the code according to my remarks :)

@LukasReschke
Copy link
Member

@MorrisJobke @schiesbn Mind reviewing? 🚀

@MorrisJobke
Copy link
Contributor

Tested and works 👍

@lock
Copy link

lock bot commented Aug 6, 2019

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.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants