aboutsummaryrefslogtreecommitdiffstats
path: root/sliapi
diff options
context:
space:
mode:
authorAgarwal, Ruchira (ra1926) <ra1926@att.com>2020-04-09 15:05:09 +0000
committerAgarwal, Ruchira (ra1926) <ra1926@att.com>2020-04-09 15:05:09 +0000
commit970c94e1494ca80ba92a25a13a44ba4b589feff9 (patch)
tree2355857f721504a2acacbf74be564c20e472730d /sliapi
parentb970a7b46fac32e626acfa23b1e2de9b22da7ff7 (diff)
set auth perm for AAF Realm
set spring SLI container shiro filter perms for authorization Issue-ID: CCSDK-2304 Signed-off-by: Agarwal, Ruchira (ra1926) <ra1926@att.com> Change-Id: Ib99223ba1921f656a0e64f62745271bc6aa0bdf7
Diffstat (limited to 'sliapi')
-rw-r--r--sliapi/springboot/src/main/java/org/onap/ccsdk/sli/core/sliapi/springboot/App.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/sliapi/springboot/src/main/java/org/onap/ccsdk/sli/core/sliapi/springboot/App.java b/sliapi/springboot/src/main/java/org/onap/ccsdk/sli/core/sliapi/springboot/App.java
index 2892430b..f4e78beb 100644
--- a/sliapi/springboot/src/main/java/org/onap/ccsdk/sli/core/sliapi/springboot/App.java
+++ b/sliapi/springboot/src/main/java/org/onap/ccsdk/sli/core/sliapi/springboot/App.java
@@ -20,6 +20,8 @@
package org.onap.ccsdk.sli.core.sliapi.springboot;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
@@ -38,6 +40,8 @@ import org.onap.aaf.cadi.shiro.AAFRealm;
public class App {
+ private static final Logger log = LoggerFactory.getLogger(App.class);
+
public static void main(String[] args) throws Exception {
SpringApplication.run(App.class, args);
}
@@ -48,6 +52,7 @@ public class App {
// If cadi prop files is not defined use local properties realm
// src/main/resources/shiro-users.properties
if ("none".equals(System.getProperty("cadi_prop_files", "none"))) {
+ log.info("cadi_prop_files undefined, AAF Realm will not be set");
PropertiesRealm realm = new PropertiesRealm();
return realm;
} else {
@@ -65,7 +70,8 @@ public class App {
if ("none".equals(System.getProperty("cadi_prop_files", "none"))) {
chainDefinition.addPathDefinition("/**", "anon");
} else {
- chainDefinition.addPathDefinition("/**", "authcBasic, rest[org.onap.sdnc:odl-api]");
+ log.info("Loaded property cadi_prop_files, AAF REALM set");
+ chainDefinition.addPathDefinition("/**", "authcBasic, rest[org.onap.sdnc.odl:odl-api]");
}
return chainDefinition;