36 lines
995 B
PHP
36 lines
995 B
PHP
<?php
|
|
|
|
namespace App\Services\Rackspace\Identity\v2;
|
|
|
|
use OpenStack\Common\Api\ApiInterface;
|
|
|
|
class Api implements ApiInterface
|
|
{
|
|
public function postTokenWithApiKey(): array
|
|
{
|
|
return [
|
|
'method' => 'POST',
|
|
'path' => 'tokens',
|
|
'params' => [
|
|
'username' => [
|
|
'type' => 'string',
|
|
'required' => true,
|
|
'path' => 'auth.RAX-KSKEY:apiKeyCredentials',
|
|
],
|
|
'apiKey' => [
|
|
'type' => 'string',
|
|
'required' => true,
|
|
'path' => 'auth.RAX-KSKEY:apiKeyCredentials',
|
|
],
|
|
'tenantId' => [
|
|
'type' => 'string',
|
|
'path' => 'auth',
|
|
],
|
|
'tenantName' => [
|
|
'type' => 'string',
|
|
'path' => 'auth',
|
|
],
|
|
],
|
|
];
|
|
}
|
|
} |