X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2Fnbi.py;h=b7a2c135d50a5179930f65383fa80ff17743b847;hp=e2419cfe2e53596f6a8ea5a5bfd0d71fd2f59324;hb=cea9591384b32a78fd44bf26ea7129498be034d6;hpb=1459d60ec7966fd38be44d44042f8c3f65bcdc9a diff --git a/osm_nbi/nbi.py b/osm_nbi/nbi.py index e2419cf..b7a2c13 100644 --- a/osm_nbi/nbi.py +++ b/osm_nbi/nbi.py @@ -257,7 +257,7 @@ valid_url_methods = { }, "k8sclusters": {"METHODS": ("GET", "POST"), "ROLE_PERMISSION": "k8sclusters:", - "": {"METHODS": ("GET", "DELETE", "PATCH", "PUT"), + "": {"METHODS": ("GET", "DELETE", "PATCH"), "ROLE_PERMISSION": "k8sclusters:id:" } }, @@ -482,8 +482,8 @@ class Server(object): def __init__(self): self.instance += 1 - self.engine = Engine() self.authenticator = Authenticator(valid_url_methods, valid_query_string) + self.engine = Engine(self.authenticator.tokens_cache) def _format_in(self, kwargs): try: