Permalink
Browse files

Updates the authentication mechanism. Fixes up some docs

  • Loading branch information...
1 parent 9e90003 commit 118c082b4b7e9a9f328b1dfbf0557f43a5d72619 @CrackerJackMack CrackerJackMack committed Dec 4, 2013
Showing with 5 additions and 4 deletions.
  1. +5 −4 lib/ObjectStorage.php
View
9 lib/ObjectStorage.php
@@ -145,8 +145,8 @@ protected function authenticate()
$client = $this->getHttpClient();
$client->setUri($this->objectStorageHost . '/auth/v1.0');
- $client->setHeaders('X-Storage-User', $this->username);
- $client->setHeaders('X-Storage-Pass', $this->password);
+ $client->setHeaders('X-Auth-User', $this->username);
+ $client->setHeaders('X-Auth-Key', $this->password);
$client->setMethod('GET');
try {
@@ -304,7 +304,8 @@ public function get(ObjectStorage_Abstract $objectStorageObject, $retrieveBody =
}
/**
- * Returns ObjectStorage user list and cluster information in JSON format
+ * Returns ObjectStorage user list and cluster information in JSON format.
+ * This will only work with users with admin privileges.
*
* @return string json data
*
@@ -335,7 +336,7 @@ public function getClusterInfo()
}
/**
- * Adds an Object Storage user
+ * Adds an Object Storage user. Only works with administrative privileges.
*
* @param string $username
* @param string $password

0 comments on commit 118c082

Please sign in to comment.