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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

Details for the file rackspaceauth-0.8.1.tar.gz.

File metadata

File hashes

Hashes for rackspaceauth-0.8.1.tar.gz
Algorithm Hash digest
SHA256 cf33fa32f7e0762374c19c7a0e324d74f942d31bc7452c11ba4a58b85dff653f
MD5 c13498360204dfcb13b21530d760b938
BLAKE2b-256 5a55fabd87d27ad047ef4b020b64e132e5a2d8717ba6bb5ecf983e669afbc1c9

See more details on using hashes here.

File details

Details for the file rackspaceauth-0.8.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for rackspaceauth-0.8.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ef348c3d2bf7bd035957b963667eabe3ebcf10655c53279f88e828b011118daa
MD5 c377b96b9e6d341569dc573b58799806
BLAKE2b-256 e1e173672dc471b996c879df45923cf158ec590aa086d7e0b240eb5a91de922f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page