Commit Graph

5594 Commits

Author SHA1 Message Date
Tom Needham fa5dff22a0 API: Require api calls to register the required auth level 2012-09-13 09:41:20 +00:00
Tom Needham 707f74226f API: /cloud/groups use OCS response codes, fix response of getGroups, fix addGroup 2012-09-05 12:49:25 +00:00
Tom Needham 6fbc1d74c4 API: Fix responses of enable and disable app methods 2012-09-05 12:40:29 +00:00
Tom Needham 28a11959d7 API: Fix /person/check api method 2012-09-05 12:32:54 +00:00
Tom Needham 6c98a94d3d API: Fix addUser and added getUser methods 2012-09-05 12:32:29 +00:00
Tom Needham 3717969fb1 API: Add provisioning api methods for apps 2012-09-05 12:30:24 +00:00
Tom Needham 2c664c60e2 API: Fix routes definition 2012-09-05 12:27:17 +00:00
Tom Needham 470b87f625 Fix ocs/person/check 2012-09-05 09:07:15 +00:00
Tom Needham 4224eb8831 API: remove OAuth auth check, respond in ocs formatted xml/json 2012-09-04 13:50:56 +00:00
Tom Needham 37bb16becb API: Add callback_fail, add OC_OAuth::init and bespoke request token method 2012-09-04 11:10:42 +00:00
Tom Needham 47eebe5f6c Add 'authorised' field to oauth_tokens table 2012-08-31 13:28:05 +00:00
Tom Needham b650c7c2a7 Add table to hold OAuth scopes 2012-08-31 12:34:48 +00:00
Tom Needham 67c2d56be8 Add ownCloud OAuth store backend. WIP 2012-08-30 14:02:31 +00:00
Tom Needham 0d1d2c0b61 Fix class name 2012-08-30 14:01:27 +00:00
Tom Needham b26ffdc4d6 Add basic db structure for oauth 2012-08-30 14:00:23 +00:00
Tom Needham 21f8646ffc API: Fix merging of responses. Return 400 error when no OAuth operation sent. 2012-08-03 15:20:01 +00:00
Tom Needham 6047a5fe51 API: Check if the consumer has permissions to access the requested method 2012-08-03 11:56:11 +00:00
Tom Needham a7906d813a Move OAuth classes into lib/oauth 2012-08-03 11:47:05 +00:00
Tom Needham 88c6928bad API: Use OC_API::checkLoggedIn() and OAuth scopes are app_$appname 2012-08-03 11:36:01 +00:00
Tom Needham 395a056b64 Remove old oauth-php library 2012-08-03 09:27:16 +00:00
Michael Gapczynski e3d88270cc OAuth server implementation using oauth library 2012-08-02 20:02:31 -04:00
Bart Visscher 4b9200f6f7 Routing: combine all routes into one set 2012-08-02 21:51:31 +02:00
Bart Visscher 6ba2623485 Move loading of routes to OC::getRouter function 2012-08-02 21:44:58 +02:00
Bart Visscher 37ef522b05 Quick fix for xml encoding arrays 2012-08-02 17:48:09 +02:00
Bart Visscher 7952c6a31c Change access to router object to getter function 2012-08-02 17:47:38 +02:00
Bart Visscher 93daa9e247 API: Complete respond function 2012-08-01 19:48:51 +02:00
Tom Needham c11c2d0fd4 Logout the user at the end of a call to be stateless 2012-08-01 13:39:05 +00:00
Tom Needham 2afe5f9b2b API: add OC_API::checkLoggedIn() 2012-08-01 13:37:00 +00:00
Tom Needham 75dbed2208 Fix the api routes 2012-08-01 14:12:59 +01:00
Tom Needham e315384b4d Remove unnecessary include 2012-08-01 10:40:09 +01:00
Tom Needham e7f7693b2f Fix 3rdparty paths, initialise OAuth in correct order 2012-08-01 10:21:33 +01:00
Tom Needham 9ec035e3d3 Add oauth-php library 2012-08-01 10:20:17 +01:00
Bart Visscher 7426217e76 Fix /privatedata/getattribute route 2012-07-31 23:26:15 +02:00
Bart Visscher 71918a820f API: set request method for registered urls 2012-07-31 22:34:35 +02:00
Bart Visscher 006b127da4 Routing: Handle MethodNotAllowedException 2012-07-31 22:33:53 +02:00
Bart Visscher 9d6a09f589 Routing: Method needs to be uppercase 2012-07-31 22:33:11 +02:00
Bart Visscher 28537037ae Fixup OCS modules 2012-07-31 22:19:11 +02:00
Bart Visscher c2bdb5c716 Fix require 3rdpartypath 2012-07-31 22:18:16 +02:00
Tom Needham fcf3dbcfc1 Require a username for OC_OAuth::registerConsumer() 2012-07-31 15:02:51 +01:00
Tom Needham ce41f3801e Actually login the user when using OAuth 2012-07-31 14:59:07 +01:00
Tom Needham 78bbcc8aea Basic OAuth class based on oauth-php. WIP 2012-07-31 14:35:07 +01:00
Tom Needham 5922599f48 Handle function not needed in lib/ocs.php 2012-07-31 14:35:07 +01:00
Tom Needham b05639e745 Fix error with namespacing 2012-07-31 10:10:15 +00:00
Tom Needham cc6911e1f7 Make method static 2012-07-31 09:28:12 +00:00
Bart Visscher 0a9ca42c34 Fix OC_OCS_Privatedata::privateDataGet 2012-07-30 21:19:03 +02:00
Bart Visscher 7a24f0cd8d Make calling ocs/v1.php/config work 2012-07-30 21:19:02 +02:00
Bart Visscher 180bd69dbb Fix OC_API::register 2012-07-30 21:19:02 +02:00
Bart Visscher 95d3b83a77 Create OC_Router in OC::init 2012-07-30 21:19:02 +02:00
Bart Visscher 0271bfa3b7 Move loading of routes to OC_Router 2012-07-30 21:19:02 +02:00
Bart Visscher 372fdf8077 Add 'ocs' as app name to API registration 2012-07-30 21:19:02 +02:00