def make_auth_plugin(self, creds): """ Returns an instantiated authentication plugin. """ strategy = creds.get("strategy", "noauth") plugin = auth.get_plugin_from_strategy(strategy, creds) return plugin
def make_auth_plugin(self, creds): """ Returns an instantiated authentication plugin. """ strategy = creds.get('strategy', 'noauth') plugin = auth.get_plugin_from_strategy(strategy, creds, self.service_type) return plugin