class Service extends AbstractService implements IdentityService

Represents the OpenStack Identity v2 service.

Traits

Methods

factory (ClientInterface $client) static 

No description

authenticate (array $options = array()) : array

Authenticates and retrieves back a token and catalog.

generateToken (array $options = array()) : Token

Generates a new authentication token

Details

static factory(ClientInterface $client)

Parameters

$client ClientInterface

Example code

$service->factory($client);

authenticate(array $options = array())

Authenticates and retrieves back a token and catalog.

Parameters

$options array

Return value

array The FIRST key is {see Token} instance, the SECOND key is a {see Catalog} instance

Example code

$array = $service->authenticate($options);

generateToken(array $options = array())

Generates a new authentication token

Parameters

$options array {see \OpenStack\Identity\v2\Api::postToken}

Return value

Token

Example code

$token = $service->generateToken($options);