From 5f7b874a73aaca110ad093cb6ca530407f54df1c Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Thu, 17 Aug 2017 10:13:29 +0530 Subject: Add basic auth mode for service CLI-29 Change-Id: I8c46a23d5875275dadcdddfd8cc2fbb864ab03f4 Signed-off-by: Kanagaraj Manickam k00365106 --- framework/src/main/resources/onap.properties | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'framework/src/main/resources') 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 -- cgit 1.2.3-korg