update controller service 32/9032/1
authordemx8as6 <martin.skorupski@highstreet-technologies.com>
Sat, 17 Sep 2022 08:17:00 +0000 (10:17 +0200)
committerdemx8as6 <martin.skorupski@highstreet-technologies.com>
Sat, 17 Sep 2022 08:17:20 +0000 (10:17 +0200)
- update of oauth settings which are no more restrictive and
better aligned with with the identity service.

IssueID OAM-297
Change-Id: I3f652320a4774e1fe4649bf946b91feac8652260
Signed-off-by: demx8as6 <martin.skorupski@highstreet-technologies.com>
solution/integration/smo/oam/sdnr/oauth-aaa-app-config.xml

index 15bc953..c210e37 100644 (file)
         <pair-key>/**/v1/**</pair-key>
         <pair-value>authcBearer, roles[admin]</pair-value>
     </urls>
+    <!-- allow admin only access to write mdsal auth config -->
     <urls>
-        <pair-key>/**/config/aaa*/**</pair-key>
+        <pair-key>/rests/**/aaa*/**</pair-key>
         <pair-value>authcBearer, roles[admin]</pair-value>
     </urls>
-     <urls>
+    <!-- anon access for login api -->
+    <urls>
         <pair-key>/oauth/**</pair-key>
         <pair-value>anon</pair-value>
     </urls>
+    <urls>
+        <pair-key>/ready</pair-key>
+        <pair-value>anon</pair-value>
+    </urls>
+    <!-- anon access for odlux ui -->
     <urls>
         <pair-key>/odlux/**</pair-key>
         <pair-value>anon</pair-value>
     </urls>
+    <!-- admin only access for apidocs -->
     <urls>
         <pair-key>/apidoc/**</pair-key>
-        <pair-value>authcBasic</pair-value>
+        <pair-value>authcBasic, roles[admin]</pair-value>
     </urls>
     <urls>
         <pair-key>/rests/**</pair-key>
         <pair-value>authcBearer, anyroles["admin,provision"]</pair-value>
     </urls>
+    <!-- any other access with configured dynamic filter -->
     <urls>
         <pair-key>/**</pair-key>
         <pair-value>authcBearer, anyroles["admin,provision"]</pair-value>