pyrax
Python Bindings for the Rackspace Cloud
 All Classes Namespaces Files Functions Variables Properties
Public Member Functions | Public Attributes
RaxIdentity Class Reference

This class handles all of the authentication requirements for working with the Rackspace Cloud. More...

Inheritance diagram for RaxIdentity:
BaseAuth FakeIdentity

List of all members.

Public Member Functions

def authenticate
 If the user's credentials include an API key, the default behavior will work.
def auth_with_token
 If a valid token is already known, this call will use it to generate the service catalog.
def find_user_by_name
 Returns a User object by searching for the supplied user name.
def find_user_by_id
 Returns a User object by searching for the supplied user ID.
def update_user
 Allows you to update settings for a given user.
def list_credentials
 Returns a user's non-password credentials.
def get_user_credentials
 Returns a user's non-password credentials.

Public Attributes

 username
 password
 authenticated

Detailed Description

This class handles all of the authentication requirements for working with the Rackspace Cloud.


Member Function Documentation

def auth_with_token (   self,
  token,
  tenant_id = None,
  tenant_name = None 
)

If a valid token is already known, this call will use it to generate the service catalog.

Reimplemented from BaseAuth.

Reimplemented in FakeIdentity.

def authenticate (   self)

If the user's credentials include an API key, the default behavior will work.

But if they are using a password, the initial attempt will fail, so try again, but this time using the standard password format.

Reimplemented from BaseAuth.

Reimplemented in FakeIdentity.

def find_user_by_id (   self,
  uid 
)

Returns a User object by searching for the supplied user ID.

Returns None if there is no match for the given ID.

def find_user_by_name (   self,
  name 
)

Returns a User object by searching for the supplied user name.

Returns None if there is no match for the given name.

def get_user_credentials (   self,
  user 
)

Returns a user's non-password credentials.

def list_credentials (   self,
  user 
)

Returns a user's non-password credentials.

def update_user (   self,
  user,
  email = None,
  username = None,
  uid = None,
  defaultRegion = None,
  enabled = None 
)

Allows you to update settings for a given user.


Member Data Documentation

Reimplemented from BaseAuth.

Reimplemented in FakeIdentity.

Reimplemented from BaseAuth.

Reimplemented in FakeIdentity.

Reimplemented from BaseAuth.

Reimplemented in FakeIdentity.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Properties