diff options
author | Michiel de Jong <michiel@unhosted.org> | 2012-02-22 18:05:52 +0000 |
---|---|---|
committer | Michiel de Jong <michiel@unhosted.org> | 2012-02-22 18:05:52 +0000 |
commit | 9850820b4276b197433bb64d84ed085cdcd01e0e (patch) | |
tree | 54a01be8be5038122820ca77dbe6eb85aaacd906 /apps/remoteStorage/auth.php | |
parent | 6c6b570ff15cfa9da6b1ab8b7e56ef0a82c96086 (diff) | |
download | nextcloud-server-9850820b4276b197433bb64d84ed085cdcd01e0e.tar.gz nextcloud-server-9850820b4276b197433bb64d84ed085cdcd01e0e.zip |
BearerAuth and multiple tokens support in remoteStorage app
Diffstat (limited to 'apps/remoteStorage/auth.php')
-rw-r--r-- | apps/remoteStorage/auth.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/remoteStorage/auth.php b/apps/remoteStorage/auth.php index 85421ba3d88..75e0aac419d 100644 --- a/apps/remoteStorage/auth.php +++ b/apps/remoteStorage/auth.php @@ -68,14 +68,14 @@ if(count($pathParts) == 2 && $pathParts[0] == '') { } else if($k=='redirect_uri'){ $appUrl=$v; } else if($k=='scope'){ - $category=$v; + $categories=$v; } } $currUser = OC_User::getUser(); if($currUser == $ownCloudUser) { if(isset($_POST['allow'])) { //TODO: check if this can be faked by editing the cookie in firebug! - $token=OC_remoteStorage::createCategory($appUrl, $category); + $token=OC_remoteStorage::createCategories($appUrl, $categories); header('Location: '.$_GET['redirect_uri'].'#access_token='.$token.'&token_type=bearer'); } else { echo '<form method="POST"><input name="allow" type="submit" value="Allow this web app to store stuff on your owncloud."></form>'; |