Part of libcloud.common.openstack View Source View In Hierarchy
Method | __init__ | Initialize `user_id` and `key`; set `secure` to an C{int} based on passed value. |
Method | morph_action_hook | Undocumented |
Method | add_default_headers | Adds default headers (such as Authorization, X-Foo-Bar) to the passed `headers` |
Method | authenticate | Authenticate against the keystone api. |
Method | authenticate_1_0 | Undocumented |
Method | authenticate_1_1 | Undocumented |
Method | authenticate_2_0_with_apikey | Undocumented |
Method | authenticate_2_0_with_password | Undocumented |
Method | authenticate_2_0_with_body | Undocumented |
Method | _is_token_valid | Return True if the current taken is already cached and hasn't expired yet. |
Inherited from Connection (via ConnectionUserAndKey, ConnectionKey):
Method | set_context | Undocumented |
Method | connect | Establish a connection with the API server. |
Method | user_agent_append | Append a token to a user agent string. |
Method | request | Request a given `action`. |
Method | add_default_params | Adds default parameters (such as API key, version, etc.) to the passed `params` |
Method | pre_connect_hook | A hook which is called before connecting to the remote server. This hook can perform a final manipulation on the params, headers and url parameters. |
Method | encode_data | Encode body data. |
Method | _tuple_from_url | Undocumented |
Method | _user_agent | Undocumented |
Initialize `user_id` and `key`; set `secure` to an C{int} based on passed value.
Adds default headers (such as Authorization, X-Foo-Bar) to the passed `headers` Should return a dictionary.
Authenticate against the keystone api. @param force: Forcefully update the token even if it's already cached and still valid. @type force: C{bool}
Return True if the current taken is already cached and hasn't expired yet. @rtype: C{bool}