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:
BaseIdentity

List of all members.

Public Member Functions

def __init__
def authenticate
def auth_with_token
 If a valid token is already known, this call uses 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 uses it to generate the service catalog.

Reimplemented from BaseIdentity.

def authenticate (   self)
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' forces a call for a new token, even if there already is a valid token.

Reimplemented from BaseIdentity.


Member Data Documentation

Reimplemented from BaseIdentity.

Reimplemented from BaseIdentity.

Reimplemented from BaseIdentity.

Reimplemented from BaseIdentity.

Reimplemented from BaseIdentity.

Reimplemented from BaseIdentity.


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