The troveclient.auth_plugin Module

The troveclient.auth_plugin Module

class troveclient.auth_plugin.BaseAuthPlugin

Bases: object

Base class for authentication plugins.

An authentication plugin needs to override at least the authenticate method to be a valid plugin.

static add_opts(parser)

Populate and return the parser with the options for this plugin.

If the plugin does not need any options, it should return the same parser untouched.

authenticate(cls, auth_url)

Authenticate using plugin defined method.

get_auth_url()

Return the auth url for the plugin (if any).

parse_opts(args)

Parse the actual auth-system options if any.

This method is expected to populate the attribute self.opts with a dict containing the options and values needed to make authentication. If the dict is empty, the client should assume that it needs the same options as the ‘keystone’ auth system (i.e. os_username and os_password).

Returns the self.opts dict.

troveclient.auth_plugin.discover_auth_systems()

Discover the available auth-systems.

This won’t take into account the old style auth-systems.

troveclient.auth_plugin.load_auth_system_opts(parser)

Load options needed by the available auth-systems into a parser.

This function will try to populate the parser with options from the available plugins.

troveclient.auth_plugin.load_plugin(auth_system)
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.

python-troveclient 2.12.1.dev1