X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2Fauth.py;h=fde7455a74c5a3aecc069718bd3ef8415a82947b;hp=94eb1e9e74bc75b3d709420c4d0cd0e4a4c9f433;hb=1546f2a46d99a4741b23857e6ceb4b813223e297;hpb=08ddb14b077121ffced28e41c441fef31b6bb6a1;ds=sidebyside diff --git a/osm_nbi/auth.py b/osm_nbi/auth.py index 94eb1e9..fde7455 100644 --- a/osm_nbi/auth.py +++ b/osm_nbi/auth.py @@ -259,6 +259,8 @@ class Authenticator: pid = self.create_admin_project() self.create_admin_user(pid) + # self.backend.update_user({"_id": "admin", + # "add_project_role_mappings": {"project": "admin", "role": "system_admin"}}) if self.config["authentication"]["backend"] == "keystone": try: self.backend.assign_role_to_user("admin", "admin", "system_admin")