projects
/
osm
/
NBI.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
NBI changes for Grafana Multitenancy feature
[osm/NBI.git]
/
osm_nbi
/
authconn.py
diff --git
a/osm_nbi/authconn.py
b/osm_nbi/authconn.py
index
c43c339
..
bbcf342
100644
(file)
--- a/
osm_nbi/authconn.py
+++ b/
osm_nbi/authconn.py
@@
-110,16
+110,16
@@
class Authconn:
Each Auth backend connector plugin must be a subclass of
Authconn class.
"""
Each Auth backend connector plugin must be a subclass of
Authconn class.
"""
- def __init__(self, config, db):
+ def __init__(self, config, db
, role_permissions
):
"""
Constructor of the Authconn class.
"""
Constructor of the Authconn class.
-
- Note: each subclass
-
:param config: configuration dictionary containing all the
necessary configuration parameters.
:param config: configuration dictionary containing all the
necessary configuration parameters.
+ :param db: internal database classs
+ :param role_permissions: read only role permission list
"""
self.config = config
"""
self.config = config
+ self.role_permissions = role_permissions
def authenticate(self, credentials, token_info=None):
"""
def authenticate(self, credentials, token_info=None):
"""