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
WebDAV Auth Connector: Check if already logged in #4042
Conversation
That's a great idea. 👍 from me if it is tested with litmus, our mobile apps and csync. |
@guruz @karlitschek is there a signed contributors agreement? |
Litmus is fine:
|
@DeepDiver1975 yes, @guruz is under contract. |
Tested with csync/mirall by @guruz |
return true; | ||
} | ||
|
||
return parent::authenticate($server, $realm); |
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.
intendation ;)
WebDAV Auth Connector: Check if already logged in
@karlitschek backport to stable5? |
yes. Is a cherry-pick fine? |
Cherry-Picking is good |
I backported it, the mirall part is also in.. :) |
@guruz thanks for backporting - generally speaking we add the backport commit |
See code comment on what it does.
Basically, we don't need our WebDAV server to do the basic auth handling if the session is already authenticated (by cookie).
So this one will work, given the correct cookies:
curl -v -X PROPFIND -H "Cookie: oc0b4d3e5b1b=biljubj3n0pnmougco5hddg317" http://127.0.0.1/remote.php/webdav
And this one will still ask for HTTP auth:
curl -v -X PROPFIND http://127.0.0.1/remote.php/webdav