Altered tenant name handling.

This commit is contained in:
Technosophos
2012-08-07 14:40:43 -05:00
parent e398aa0b41
commit 9b93527b13

View File

@@ -323,7 +323,7 @@ class IdentityServices /*implements Serializable*/ {
* HPCloud console. * HPCloud console.
* @param string $tenantName * @param string $tenantName
* The tenant Name for this account. This can be obtained through the * The tenant Name for this account. This can be obtained through the
* HPCloud console. NOTE: This is currently unused. * HPCloud console.
* @throws HPCloud::Transport::AuthorizationException * @throws HPCloud::Transport::AuthorizationException
* If authentication failed. * If authentication failed.
* @throws HPCloud::Exception * @throws HPCloud::Exception
@@ -342,12 +342,9 @@ class IdentityServices /*implements Serializable*/ {
if (!empty($tenantId)) { if (!empty($tenantId)) {
$ops['tenantId'] = $tenantId; $ops['tenantId'] = $tenantId;
} }
elseif (!empty($tenantName)) {
// Not currently working. $ops['tenantName'] = $tenantName;
// If a tenant name is provided, add it to the auth array. }
//if (!empty($tenantName)) {
// $ops['tenantName'] = $tenantName;
//}
return $this->authenticate($ops); return $this->authenticate($ops);
@@ -404,9 +401,9 @@ class IdentityServices /*implements Serializable*/ {
if (!empty($tenantId)) { if (!empty($tenantId)) {
$ops['tenantId'] = $tenantId; $ops['tenantId'] = $tenantId;
} }
//if (!empty($tenantName)) { elseif (!empty($tenantName)) {
// $ops['tenantName'] = $tenantName; $ops['tenantName'] = $tenantName;
//} }
return $this->authenticate($ops); return $this->authenticate($ops);
} }