[owncloud-devel] Sabre and Apps

Joas Schilling nickvergessen at owncloud.com
Tue Jun 16 14:43:54 GMT 2015


Thanks for the hint. I will send a PullRequest to the docs to get this 
sorted out.


Am 16.06.2015 um 15:58 schrieb Klaus Herberth:
> Hey Lukas,
>
> thank you for your quick response.
>
>> Why do you clear the backends?
> This prevents oc to authenticates against an other backend.
>
>> I tried your code and it looks for me like your info.xml types need to look as following:
>> <types>
>> 	<authentication/>
>> </types>
> You are right. This was the solution. I used
>
> ```
> <types>
>     <type>authentication</type>
> </types>
> ```
>
> because this is the way it is documented in [1].
>
> Can someone correct that?
>
> Regards,
> Klaus
>
> [1] https://doc.owncloud.org/server/8.0/developer_manual/app/info.html
>
>
> Am 15.06.2015 um 21:37 schrieb Lukas Reschke:
>>> On Jun 15, 2015, at 4:13 PM, Klaus Herberth <klaus at herberth.eu> wrote:
>>>
>>> Hi guys,
>>>
>>> I wrote a custom user backend [1], which authenticates again an other
>>> website. Everything works fine, if I login through the webinterface. But
>>> it will fail if I try caldav or webdav. I see in the log files, that
>>> owncloud tries to authenticate the user against the core user backend.
>>> Do you have any idea or reference, how I can get it work?
>>>
>>> I use this snippet to register my backend:
>>>
>>> ```
>>> OC_User::clearBackends();
>> That looks fishy. Why do you clear the backends?
>>
>>> OC_User::registerBackend("HIORG");
>>> OC_User::useBackend( "HIORG" );
>> That looks good again.
>>
>> I tried your code and it looks for me like your info.xml types need to look as following:
>> <types>
>> 	<authentication/>
>> </types>
>>
>> (don’t forget to increment the version number as well so that this gets populated to the DB)
>>
>> - Lukas
>>
>>> ```
>>>
>>> Klaus
>>>
>>>
>>> [1] https://github.com/sualko/owncloud_user_hiorg
>>>
>>> _______________________________________________
>>> Devel mailing list
>>> Devel at owncloud.org
>>> http://mailman.owncloud.org/mailman/listinfo/devel
>> _______________________________________________
>> Devel mailing list
>> Devel at owncloud.org
>> http://mailman.owncloud.org/mailman/listinfo/devel
>>
>
>
> _______________________________________________
> Devel mailing list
> Devel at owncloud.org
> http://mailman.owncloud.org/mailman/listinfo/devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.owncloud.org/pipermail/devel/attachments/20150616/16c009e8/attachment-0001.html>


More information about the Devel mailing list