[Owncloud] API owncloud authentication?
Tom Needham
tom at owncloud.com
Sat Jun 1 19:36:42 UTC 2013
It depends on exactly what you are trying to do.
1: Externally determine if a user exists
Use the OCS api call person/check. See http://www.freedesktop.org/wiki/Specifications/open-collaboration-services/
2: Determine if a user exists within an ownCloud app
Use OCP\User::userExists() and OCP\User::checkPassword()
3. Create a custom app that asks for ownCloud auth credentials before access
Create a php file and use OCP\User::checkLoggedIn(). Or if you are creating an api, use OCP\API::register() as Bernhard mentioned. See the docs that he linked to.
Cheers,
Tom
--
Tom Needham (tom at owncloud.com)
Software Developer
ownCloud GmbH
On 31 May 2013, at 20:58, Cyryl Sochacki <cyrylsochacki at gmail.com> wrote:
> Hello.
>
> I'm creating an application that has to have authentication by owncloud. If the API owncloud allows you to check whether a user exists and referral information back?
>
> If so, he asked me some suggestions.
>
> Best regards.
> Cyryl
> _______________________________________________
> Owncloud mailing list
> Owncloud at kde.org
> https://mail.kde.org/mailman/listinfo/owncloud
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/owncloud/attachments/20130601/a4aa8499/attachment.html>
More information about the Owncloud
mailing list