Logo: Relish

  1. Sign in

Project: Omnimax

Rackspace Authentication (php-opencloud)

This is a simple test to authenticate to Rackspace.

Scenarios
  • @php-opencloud
Authenticate (php-opencloud)
Given
I am setup to run example code for php-opencloud
When
I execute the following code:
<?php
require_once "vendor/rackspace/php-opencloud/lib/php-opencloud.php";
use OpenCloud\Rackspace;

$endpoint = 'https://identity.api.rackspacecloud.com/v2.0/';
$credentials = array(
    'username' => getenv('RAX_USERNAME'),
    'apiKey' => getenv('RAX_API_KEY')
);

$rackspace = new Rackspace($endpoint, $credentials);
$rackspace->Authenticate();
echo('Authenticated')
?>
Then
the output should match
Authenticated

Last published about 6 years ago by Max Lincoln.