Merge branch 'master' into tag-policy
diff --git a/security-admin/scripts/install.properties b/security-admin/scripts/install.properties
index cb10769..5c39dcf 100644
--- a/security-admin/scripts/install.properties
+++ b/security-admin/scripts/install.properties
@@ -110,6 +110,18 @@
#
#
+#-------- SSO CONFIG - Start ------------------
+#
+sso_enabled=false
+sso_providerurl=https://localhost:8443/gateway/knoxsso/api/v1/websso
+sso_publickey=
+sso_cookiename=hadoop-jwt
+sso_query_param_originalurl=originalUrl
+#
+#-------- SSO CONFIG - Start ------------------
+#
+
+#
# UNIX authentication service for Policy Manager
#
# PolicyManager can authenticate using UNIX username/password
diff --git a/security-admin/scripts/setup.sh b/security-admin/scripts/setup.sh
index 6753d8d..fb6b9c4 100755
--- a/security-admin/scripts/setup.sh
+++ b/security-admin/scripts/setup.sh
@@ -344,6 +344,27 @@
log "[E] $to_file_default does not exists" ; exit 1;
fi
+ propertyName=ranger.sso.enabled
+ newPropertyValue="${sso_enabled}"
+ updatePropertyToFilePy $propertyName $newPropertyValue $to_file_ranger
+
+ propertyName=ranger.sso.providerurl
+ newPropertyValue="${sso_providerurl}"
+ updatePropertyToFilePy $propertyName $newPropertyValue $to_file_ranger
+
+ propertyName=ranger.sso.publicKey
+ newPropertyValue="${sso_publickey}"
+ updatePropertyToFilePy $propertyName $newPropertyValue $to_file_ranger
+
+ propertyName=ranger.sso.cookiename
+ newPropertyValue="${sso_cookiename}"
+ updatePropertyToFilePy $propertyName $newPropertyValue $to_file_ranger
+
+ propertyName=ranger.sso.query.param.originalurl
+ newPropertyValue="${sso_query_param_originalurl}"
+ updatePropertyToFilePy $propertyName $newPropertyValue $to_file_ranger
+
+
if [ "${DB_FLAVOR}" == "MYSQL" ]
then
propertyName=ranger.jpa.jdbc.url