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 ([email protected]) Software Developer ownCloud GmbH On 31 May 2013, at 20:58, Cyryl Sochacki <[email protected]> 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 > [email protected] > https://mail.kde.org/mailman/listinfo/owncloud
_______________________________________________ Owncloud mailing list [email protected] https://mail.kde.org/mailman/listinfo/owncloud
