From 4de182c7af6d9c97a6696366dd1889a87b24c403 Mon Sep 17 00:00:00 2001
From: Michiel de Jong <michiel@unhosted.org>
Date: Wed, 9 May 2012 15:24:04 +0200
Subject: [PATCH] bearer token should be the whole thing, not the http basic
 pass

---
 apps/remoteStorage/lib_remoteStorage.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/remoteStorage/lib_remoteStorage.php b/apps/remoteStorage/lib_remoteStorage.php
index 3e366ad29ea..42cd9c90f64 100755
--- a/apps/remoteStorage/lib_remoteStorage.php
+++ b/apps/remoteStorage/lib_remoteStorage.php
@@ -19,7 +19,7 @@ class OC_remoteStorage {
 		$result=$query->execute(array($user, $appUrl, $categories));
 		$ret = array();
 		if($row=$result->fetchRow()) {
-      return $row['token'];
+		  return base64_encode('remoteStorage:'.$row['token']);
     } else {
       return false;
     }
-- 
GitLab