simple-keystone-client

v1.1.0
Simple non-caching client for OpenStack Keystone identity service
keystone openstack identity auth rackspace

simple-keystone-client

This library provides the minimal useful Keystone identity client in a small, clean, well-tested package.

Installation

npm install simple-keystone-client

API

First, get the client library in your Node.js or IO.js script.

var client = require('simple-keystone-client');

client.authenticate(options, cb)

Authenticates and returns an access response to the callback. options is a hash containing the following keys:

  • username - REQUIRED The username to log in as.
  • apiKey - The API key to use. If it is not supplied, a password must be used instead.
  • password - The password to use. If it is not supplied, an API key must be present.
  • identityEndpoint - The identity endpoint to use, defaults to https://identity.api.rackspacecloud.com/v2.0/tokens
  • tenantId - An optional tenant ID. This helps some Keystone implementations generate correct endpoints for services in the catalog.

The callback takes two arguments (err, res) where err is the error that occurred, if any, and res.access is the access from Keystone containing an access token and a service catalog.

npm i simple-keystone-client

Metadata

  • MIT
  • Whatever
  • Ken Sheedlo
  • released 4/15/2015

Downloads

Maintainers