Feature 8532: Added new plugin authconn tacacs
[osm/NBI.git] / osm_nbi / engine.py
index 133cb9d..a647784 100644 (file)
@@ -23,6 +23,7 @@ from http import HTTPStatus
 
 from osm_nbi.authconn_keystone import AuthconnKeystone
 from osm_nbi.authconn_internal import AuthconnInternal
+from osm_nbi.authconn_tacacs import AuthconnTacacs
 from osm_nbi.base_topic import EngineException, versiontuple
 from osm_nbi.admin_topics import VimAccountTopic, WimAccountTopic, SdnTopic
 from osm_nbi.admin_topics import K8sClusterTopic, K8sRepoTopic, OsmRepoTopic
@@ -132,6 +133,9 @@ class Engine(object):
                 if config["authentication"]["backend"] == "keystone":
                     self.authconn = AuthconnKeystone(config["authentication"], self.db,
                                                      self.authenticator.role_permissions)
+                elif config["authentication"]["backend"] == "tacacs":
+                    self.authconn = AuthconnTacacs(config["authentication"], self.db,
+                                                   self.authenticator.role_permissions)
                 else:
                     self.authconn = AuthconnInternal(config["authentication"], self.db,
                                                      self.authenticator.role_permissions)