authn: Log a warning message if fallback authentication plugin is enabled in ini file.
This commit is contained in:
parent
9d4692ad5f
commit
d1c5c52375
1 changed files with 7 additions and 3 deletions
|
|
@ -76,8 +76,12 @@ class AuthenticationPluginRegistry(object):
|
||||||
plugins.append(plugin)
|
plugins.append(plugin)
|
||||||
|
|
||||||
# Add the fallback plugin from ini file.
|
# Add the fallback plugin from ini file.
|
||||||
plugin = self.get_plugin(self._fallback_plugin)
|
if self._fallback_plugin:
|
||||||
if plugin is not None and plugin not in plugins:
|
log.warn(
|
||||||
plugins.append(plugin)
|
'Using fallback authentication plugin from INI file: "%s"',
|
||||||
|
plugin.get_id())
|
||||||
|
plugin = self.get_plugin(self._fallback_plugin)
|
||||||
|
if plugin is not None and plugin not in plugins:
|
||||||
|
plugins.append(plugin)
|
||||||
|
|
||||||
return plugins
|
return plugins
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue