summaryrefslogtreecommitdiffstats
path: root/framework/src/main/resources/onap.properties
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-08-17 10:13:29 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-08-17 10:13:29 +0530
commit5f7b874a73aaca110ad093cb6ca530407f54df1c (patch)
tree64a5167a20ef1c7c8a5eca596f58ad1e927d5dbf /framework/src/main/resources/onap.properties
parent6e5f1c2fed28eecd2a749bcd6dd2748082de1b42 (diff)
Add basic auth mode for service
CLI-29 Change-Id: I8c46a23d5875275dadcdddfd8cc2fbb864ab03f4 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'framework/src/main/resources/onap.properties')
-rw-r--r--framework/src/main/resources/onap.properties14
1 files changed, 12 insertions, 2 deletions
diff --git a/framework/src/main/resources/onap.properties b/framework/src/main/resources/onap.properties
index 7eb8e598..84a86e83 100644
--- a/framework/src/main/resources/onap.properties
+++ b/framework/src/main/resources/onap.properties
@@ -1,7 +1,6 @@
cli.ignore_auth=false
cli.version=1.0
-http.api_key=X-Auth-Token
-http.api_key_use_cookies=true
+cli.http.api_key_use_cookies=true
cli.service_name=onap-cli
cli.api_gateway=msb
@@ -12,3 +11,14 @@ cli.exclude_params_internal_cmd=onap-username,onap-password,host-url,no-auth
cli.no_auth_disable_include_params_external_cmd=onap-username,onap-password,host-url,no-auth
cli.no_auth_enable_exclude_params_external_cmd=onap-username,onap-password,no-auth
cli.no_auth_enable_include_params_external_cmd=host-url
+
+cli.service.auth=aaf
+cli.http.basic.common_headers=x-auth-token,x-transaction-id,x-app-id
+cli.http.basic.common_headers.x-auth-token=Authorization
+cli.http.basic.common_headers.x-transaction-id=X-TransactionId
+cli.http.basic.common_headers.x-transaction-id.value=req-uuid
+cli.http.basic.common_headers.x-app-id=X-FromAppId
+cli.http.basic.common_headers.x-app-id.value=onap-cli
+
+#TODO mrkanag add support for aaf like defined above for basic
+#cli.service.auth=aaf \ No newline at end of file