2017 © Pedro Peláez
 

project keystone-client

An HTTP client with automatic authentication for an OpenStack Identity Service API a.k.a. Keystone

image

treehouselabs/keystone-client

An HTTP client with automatic authentication for an OpenStack Identity Service API a.k.a. Keystone

  • Monday, January 16, 2017
  • by pkruithof
  • Repository
  • 9 Watchers
  • 0 Stars
  • 45,593 Installations
  • PHP
  • 1 Dependents
  • 1 Suggesters
  • 2 Forks
  • 1 Open issues
  • 12 Versions
  • 5 % Grown

The README.md

Keystone Client

Latest Version on Packagist ![Software License][ico-license] Build Status ![Coverage Status][ico-scrutinizer] Quality Score, (*1)

A client to use when communicating with Keystone services. Uses Guzzle as the actual HTTP client library., (*2)

Installation

composer require treehouselabs/keystone-client:~3.0

Usage

Use the ClientFactory to create a Guzzle Client with. The factory attaches middleware that automatically requests a Keystone token and signs outgoing requests with it., (*3)

In the case of an expired token, and the request fails, a new token is fetched automatically and the request is retried with the new token., (*4)

use TreeHouse\Cache\CacheInterface;
use TreeHouse\Keystone\Client\ClientFactory;
use TreeHouse\Keystone\Client\Model\Tenant;

$tokenUrl     = 'http://example.org/tokens';
$username     = 'acme';
$password     = 's3cr4t';
$serviceType  = 'compute';
$serviceName  = 'api';

// $cache is a TreeHouse\Cache\CacheInterface instance
$tenant  = new Tenant($tokenUrl, $username, $password, $serviceType, $serviceName);
$client  = (new ClientFactory($cache))->createClient($tenant);

// now just use $client as you would a regular Guzzle client
$response = $client->get('posts/');

Testing

bash composer test, (*5)

Security

If you discover any security related issues, please email peter@treehouse.nl instead of using the issue tracker., (*6)

License

The MIT License (MIT). Please see License File for more information., (*7)

Credits

The Versions

16/01 2017

dev-remove-psr7-version-lock

dev-remove-psr7-version-lock

An HTTP client with automatic authentication for an OpenStack Identity Service API a.k.a. Keystone

  Sources   Download

MIT

The Requires

 

The Development Requires

authentication token identity openstack keystone

05/10 2016

4.0.x-dev

4.0.9999999.9999999-dev

An HTTP client with automatic authentication for an OpenStack Identity Service API a.k.a. Keystone

  Sources   Download

MIT

The Requires

 

The Development Requires

authentication token identity openstack keystone

04/10 2016

dev-master

9999999-dev

An HTTP client with automatic authentication for an OpenStack Identity Service API a.k.a. Keystone

  Sources   Download

MIT

The Requires

 

The Development Requires

authentication token identity openstack keystone

25/07 2016

dev-doc-fix

dev-doc-fix

An HTTP client with automatic authentication for an OpenStack Identity Service API a.k.a. Keystone

  Sources   Download

MIT

The Requires

 

The Development Requires

authentication token identity openstack keystone

09/05 2016

v3.2.1

3.2.1.0

An HTTP client with automatic authentication for an OpenStack Identity Service API a.k.a. Keystone

  Sources   Download

MIT

The Requires

 

The Development Requires

authentication token identity openstack keystone

01/04 2016

v3.2.0

3.2.0.0

An HTTP client with automatic authentication for an OpenStack Identity Service API a.k.a. Keystone

  Sources   Download

MIT

The Requires

 

The Development Requires

authentication token identity openstack keystone

03/11 2015

v3.1.1

3.1.1.0

An HTTP client with automatic authentication for an OpenStack Identity Service API a.k.a. Keystone

  Sources   Download

MIT

The Requires

 

The Development Requires

authentication token identity openstack keystone

20/10 2015

v3.1.0

3.1.0.0

An HTTP client with automatic authentication for an OpenStack Identity Service API a.k.a. Keystone

  Sources   Download

MIT

The Requires

 

The Development Requires

authentication token identity openstack keystone

19/10 2015

v3.0.0

3.0.0.0

An HTTP client with automatic authentication for an OpenStack Identity Service API a.k.a. Keystone

  Sources   Download

MIT

The Requires

 

The Development Requires

authentication token identity openstack keystone

13/05 2015

v2.1.0

2.1.0.0

An HTTP client with automatic authentication for an OpenStack Identity Service API a.k.a. Keystone

  Sources   Download

MIT

The Requires

 

The Development Requires

authentication token identity openstack keystone

12/05 2015

v2.0.0

2.0.0.0

An HTTP client with automatic authentication for an OpenStack Identity Service API a.k.a. Keystone

  Sources   Download

MIT

The Requires

 

The Development Requires

authentication token identity openstack keystone

20/05 2014

v1.0.0

1.0.0.0

An HTTP client with automatic authentication for an OpenStack Identity Service API a.k.a. Keystone

  Sources   Download

MIT

The Requires

 

The Development Requires

authentication token identity openstack keystone