Merge changes from topic "OAM-328"
authorMartin Skorupski <martin.skorupski@highstreet-technologies.com>
Wed, 12 Apr 2023 10:45:33 +0000 (10:45 +0000)
committerGerrit Code Review <gerrit@o-ran-sc.org>
Wed, 12 Apr 2023 10:45:33 +0000 (10:45 +0000)
* changes:
  Secure all created user accounts
  Secure all created user accounts

solution/smo/common/identity/authentication.json
solution/smo/common/identity/config.py

index f16de97..2f91979 100644 (file)
         {
           "type": "password",
           "value": "Default4SDN!",
-          "temporary": false
+          "temporary": true
         }
+      ],
+      "requiredActions": [
+        "UPDATE_PASSWORD"
       ]
     },
     {
         {
           "type": "password",
           "value": "Default4SDN!",
-          "temporary": false
+          "temporary": true
         }
+      ],
+      "requiredActions": [
+        "UPDATE_PASSWORD"
       ]
     },
     {
         {
           "type": "password",
           "value": "Default4SDN!",
-          "temporary": false
+          "temporary": true
         }
+      ],
+      "requiredActions": [
+        "UPDATE_PASSWORD"
       ]
     },
     {
         {
           "type": "password",
           "value": "Default4SDN!",
-          "temporary": false
+          "temporary": true
         }
+      ],
+      "requiredActions": [
+        "UPDATE_PASSWORD"
       ]
     },
     {
index 9db5de1..393d918 100644 (file)
@@ -202,9 +202,12 @@ def createUsers(token, realmConfig, authConfig):
             {
                 "type": "password",
                 "value": password,
-                "temporary": False
+                "temporary": True
             }
-        ]
+      ],
+      "requiredActions": [
+        "UPDATE_PASSWORD"
+      ]
     }
     createUser(token, realmConfig, systemUser)
 
@@ -232,7 +235,6 @@ def addUserRole(user: dict, role: dict, options: dict):
 
 # searches for the role of a given user
 
-
 def findRole(username: str, authConfig: dict, realmConfig: dict) -> dict:
     roleName = 'administration'
     for grant in authConfig['grants']: