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.

Filename, size & hash SHA256 hash help File type Python version Upload date
rackspaceauth-0.8.1-py2.py3-none-any.whl (9.3 kB) Copy SHA256 hash SHA256 Wheel 3.4
rackspaceauth-0.8.1.tar.gz (11.4 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page