Integrate EPSDK-FW library for auth and users
[portal/ric-dashboard.git] / webapp-backend / src / main / resources / application.properties
index 382cd19..1b7bd1c 100644 (file)
@@ -1,4 +1,3 @@
-###
 # ========================LICENSE_START=================================
 # O-RAN-SC
 # %%
 # See the License for the specific language governing permissions and
 # limitations under the License.
 # ========================LICENSE_END===================================
-###
 
-# Defines property keys for the RIC Dashboard, and some defaults
+# Defines RIC Dashboard property keys and default values.
+# Create a copy in the launch directory to override values; or
+# copy to "application-abc.properties" as mentioned in the README.
 
-# Confusingly, this key has no "spring" prefix
-# The port number is chosen RANDOMLY when running a test
+# A spring property but without a "spring" prefix;
+# the port number is chosen RANDOMLY when running tests
 server.port = 8080
 
+# path to file that stores user details;
+# use a persistent volume in a K8S deployment
+userfile = users.json
+
+# class that decrypts ciphertext from Portal
+portalapi.decryptor = org.oransc.ric.portal.dashboard.portalapi.PortalSdkDecryptorAes
+# name of request cookie with user ID
+portalapi.usercookie = UserId
+
+# portal credentials must be supplied at deployment time
+portalapi.appname = RIC Dashboard
+portalapi.username =
+portalapi.password =
+
+# endpoint URLs must be supplied at deployment time
 # A1 Mediator
 a1med.url.prefix = http://jar-app-props-default-A1-URL-prefix
 a1med.url.suffix =
-
 # ANR xApp
 anrxapp.url.prefix = http://jar-app-props-default-ANR-URL-prefix
 anrxapp.url.suffix =
-
 # App Manager
 appmgr.url.prefix = http://jar-app-props-default-Xapp-Mgr-URL
 appmgr.url.suffix = /ric/v1
-
 # E2 Manager
 e2mgr.url.prefix = http://jar-app-props-default-E2-URL
 e2mgr.url.suffix = /v1
+
+# Mimic slow endpoints by defining sleep period, in milliseconds
+mock.config.delay = 0