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

Class that returns canned authentication responses. More...

Inheritance diagram for FakeIdentity:
RaxIdentity BaseAuth

List of all members.

Public Member Functions

def __init__
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 get_token
 Returns the auth token, if it is valid.
def fake_response

Public Attributes

 username
 password
 authenticated
 token
 tenant_id
 tenant_name

Detailed Description

Class that returns canned authentication responses.


Constructor & Destructor Documentation

def __init__ (   self,
  args,
  kwargs 
)

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 RaxIdentity.

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 RaxIdentity.

def fake_response (   self)
def get_token (   self,
  force = False 
)

Returns the auth token, if it is valid.

If not, calls the auth endpoint to get a new token. Passing 'True' to 'force' will force a call for a new token, even if there already is a valid token.

Reimplemented from BaseAuth.


Member Data Documentation

Reimplemented from RaxIdentity.

Reimplemented from RaxIdentity.

Reimplemented from BaseAuth.

Reimplemented from BaseAuth.

Reimplemented from BaseAuth.

Reimplemented from RaxIdentity.


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