Skip to main content

keystoneauth plugin for Rackspace's authentication service

Project description

https://travis-ci.org/rackerlabs/python-rackspace-auth.svg

This package provides plugins to keystoneauth1, the OpenStack Keystone authentication library, for Rackspace’s supported authentication methods: API key, password, and token.

Usage

The following example authenticates Mayor McCheese with his API key, as found in his control panel.

from rackspaceauth import v2
from keystoneauth1 import session

auth = v2.APIKey(username="Mayor McCheese",
                 api_key="OMGCHEESEISGREAT")

sess = session.Session(auth=auth)
sess.get_token()

To use in a clouds.yaml file, for use with shade, ansible, os-client-config, and other tools, one might add a section like this:

clouds:
  rackspace-iad
    profile: rackspace
    auth:
      username: mayor-mccheese
      api_key: OMGCHEESEISGREAT
    auth_type: rackspace_apikey
    region_name: IAD

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rackspaceauth-0.8.1.tar.gz (11.4 kB view hashes)

Uploaded source

Built Distribution

rackspaceauth-0.8.1-py2.py3-none-any.whl (9.3 kB view hashes)

Uploaded 3 4

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page