pyrax
Python Bindings for the Rackspace Cloud
|
Class that returns canned authentication responses. More...
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 |
Class that returns canned authentication responses.
def __init__ | ( | self, | |
args, | |||
kwargs | |||
) |
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.
Reimplemented from BaseIdentity.
Reimplemented from BaseIdentity.
Reimplemented from BaseIdentity.
Reimplemented from BaseIdentity.
Reimplemented from BaseIdentity.
Reimplemented from BaseIdentity.