pyrax
Python Bindings for the Rackspace Cloud
|
Class that returns canned authentication responses. More...
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 |
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 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.
Reimplemented from RaxIdentity.
Reimplemented from RaxIdentity.
Reimplemented from BaseAuth.
Reimplemented from RaxIdentity.