Altered tenant name handling.
This commit is contained in:
@@ -323,7 +323,7 @@ class IdentityServices /*implements Serializable*/ {
|
||||
* HPCloud console.
|
||||
* @param string $tenantName
|
||||
* 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
|
||||
* If authentication failed.
|
||||
* @throws HPCloud::Exception
|
||||
@@ -342,12 +342,9 @@ class IdentityServices /*implements Serializable*/ {
|
||||
if (!empty($tenantId)) {
|
||||
$ops['tenantId'] = $tenantId;
|
||||
}
|
||||
|
||||
// Not currently working.
|
||||
// If a tenant name is provided, add it to the auth array.
|
||||
//if (!empty($tenantName)) {
|
||||
// $ops['tenantName'] = $tenantName;
|
||||
//}
|
||||
elseif (!empty($tenantName)) {
|
||||
$ops['tenantName'] = $tenantName;
|
||||
}
|
||||
|
||||
|
||||
return $this->authenticate($ops);
|
||||
@@ -404,9 +401,9 @@ class IdentityServices /*implements Serializable*/ {
|
||||
if (!empty($tenantId)) {
|
||||
$ops['tenantId'] = $tenantId;
|
||||
}
|
||||
//if (!empty($tenantName)) {
|
||||
// $ops['tenantName'] = $tenantName;
|
||||
//}
|
||||
elseif (!empty($tenantName)) {
|
||||
$ops['tenantName'] = $tenantName;
|
||||
}
|
||||
|
||||
return $this->authenticate($ops);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user