X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2Fauth.py;h=9098de7835a1c93c521a2d87e888532311b2ead5;hp=f756d9deaf96dfab52299e134ddb8e6e2e077152;hb=refs%2Fchanges%2F25%2F9025%2F1;hpb=6486f7485862dc51758864e6cf7d5d2523751873 diff --git a/osm_nbi/auth.py b/osm_nbi/auth.py index f756d9d..9098de7 100644 --- a/osm_nbi/auth.py +++ b/osm_nbi/auth.py @@ -114,9 +114,9 @@ class Authenticator: .format(config["message"]["driver"])) if not self.backend: if config["authentication"]["backend"] == "keystone": - self.backend = AuthconnKeystone(self.config["authentication"], self.db) + self.backend = AuthconnKeystone(self.config["authentication"], self.db, self.role_permissions) elif config["authentication"]["backend"] == "internal": - self.backend = AuthconnInternal(self.config["authentication"], self.db) + self.backend = AuthconnInternal(self.config["authentication"], self.db, self.role_permissions) self._internal_tokens_prune() else: raise AuthException("Unknown authentication backend: {}"