Re: How to use BasicAuth

2014-07-22 Thread Evert Pot
Hi Paranerd, Glad to hear you figured it out. For what it's worth, the old api's still exist, but it takes a bit more effort to set up, and the name of the class has changed: https://github.com/fruux/sabre-http/blob/master/lib/Sabre/HTTP/Auth/Basic.php But it's much better to use the auth plug

Re: How to use BasicAuth

2014-07-22 Thread paranerd
Figured out the rest myself, thank you SO MUCH! =D -- You received this message because you are subscribed to the Google Groups "SabreDAV Discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to sabredav-discuss+unsubscr...@googlegroups.com. To post

Re: How to use BasicAuth

2014-07-22 Thread paranerd
Thank you, that already helps a lot. But where do $username and $password come from? Are $auth->getUserPass(); and $auth->requireLogin(); still available? Am Dienstag, 22. Juli 2014 17:48:17 UTC+2 schrieb paranerd: > > > Hello everybody, > > in my program I am currently using SabreDav 1.x and

Re: How to use BasicAuth

2014-07-22 Thread Evert Pot
Hi! We recommend writing an auth backend[1] or using the BasicCallBack backend[2]. The latter is pretty easy to use and gives you a similar API: $authBackend = new Sabre\DAV\Auth\Backend\BasicCallBack(function($userName, $password) { // check the username and password here, and then just

How to use BasicAuth

2014-07-22 Thread paranerd
Hello everybody, in my program I am currently using SabreDav 1.x and obviously would like to upgrade to the latest version. Unfortunately I can't figure out how to use BasicAuth with SabreDav 2.x. Right now, I get username and password via $auth->requireLogin(); $pass = $auth->getUserPass();