dupondje / PHP-Push-2

Z-Push Fork With CalDAV/LDAP Support
GNU Affero General Public License v3.0
67 stars 24 forks source link

Added basic digest authentication support to CalDAV client #59

Closed onecrayon closed 11 years ago

onecrayon commented 11 years ago

I've been working to get PHP-Push-2 working on a recent OS X Server install (using 10.8.2 Mountain Lion), and for whatever reason OS X Server requires digest authentication to work.

This patch adds the most basic version of digest authentication to the caldav-client-v2.php file as a fallback if basic authentication fails (and there is a WWW-Authenticate: digest header in the response from the server).

dupondje commented 11 years ago

This doesn't break current logins I guess?

onecrayon commented 11 years ago

It theoretically shouldn't (the basic authentication logic is unchanged, and always attempted first), but I don't have any non-OS X Server accounts to test it with.

dupondje commented 11 years ago

Could somebody test this if it doesn't break anything?