troveclient.compat.auth module

class troveclient.compat.auth.Auth1_1(client, type, url, username, password, tenant, region=None, service_type=None, service_name=None, service_url=None)

Bases: Authenticator

authenticate()

Authenticate against a v2.0 auth service.

class troveclient.compat.auth.Authenticator(client, type, url, username, password, tenant, region=None, service_type=None, service_name=None, service_url=None)

Bases: object

Helper class to perform Keystone or other miscellaneous authentication.

The “authenticate” method returns a ServiceCatalog, which can be used to obtain a token.

URL_REQUIRED = True
authenticate()
class troveclient.compat.auth.FakeAuth(client, type, url, username, password, tenant, region=None, service_type=None, service_name=None, service_url=None)

Bases: Authenticator

Useful for faking auth.

authenticate()
class troveclient.compat.auth.KeyStoneV2Authenticator(client, type, url, username, password, tenant, region=None, service_type=None, service_name=None, service_url=None)

Bases: Authenticator

authenticate()
class troveclient.compat.auth.KeyStoneV3Authenticator(client, type, url, username, password, tenant, region=None, service_type=None, service_name=None, service_url=None)

Bases: Authenticator

authenticate()
class troveclient.compat.auth.ServiceCatalog(resource_dict, region=None, service_type=None, service_name=None, service_url=None, root_key='access')

Bases: object

Represents a Keystone Service Catalog which describes a service.

This class has methods to obtain a valid token as well as a public service url and a management url.

get_management_url()
get_public_url()
get_token()
class troveclient.compat.auth.ServiceCatalog3(resource_dict, region=None, service_type=None, service_name=None, service_url=None, token=None)

Bases: object

Represents a Keystone Service Catalog which describes a service.

This class has methods to obtain a valid token as well as a public service url and a management url.

get_management_url()
get_public_url()
get_token()
troveclient.compat.auth.get_authenticator_cls(cls_or_name)

Factory method to retrieve Authenticator class.