diff --git a/assembly/bin/appconn-refresh.sh b/assembly/bin/appconn-refresh.sh index 7f455a3eea..369a3e3878 100644 --- a/assembly/bin/appconn-refresh.sh +++ b/assembly/bin/appconn-refresh.sh @@ -40,7 +40,7 @@ if [ -z $1 ];then else echo "You chose to wait for 5 minutes." echo "Now try to call dss-framework-project to reload the plugin of $APPCONN_NAME AppConn." - curl -H "Token-Code:BML-AUTH" -H "Token-User:hadoop" -X GET http://${GATEWAY_INSTALL_IP}:${GATEWAY_PORT}/api/rest_j/v1/dss/framework/project/appconn/${APPCONN_NAME}/load + curl -H "Token-Code:" -H "Token-User:hadoop" -X GET http://${GATEWAY_INSTALL_IP}:${GATEWAY_PORT}/api/rest_j/v1/dss/framework/project/appconn/${APPCONN_NAME}/load isSuccess "reload the plugin of $APPCONN_NAME AppConn in dss-framework-project." echo "Now please wait for 5 minutes, then all of the DSS micro-services will refresh the ${APPCONN_NAME} AppConn plugin." echo "" @@ -49,7 +49,7 @@ if [ -z $1 ];then else APPCONN_NAME=$1 echo "Now try to call dss-framework-project to reload the plugin of $APPCONN_NAME AppConn." - curl -H "Token-Code:BML-AUTH" -H "Token-User:hadoop" -X GET http://${GATEWAY_INSTALL_IP}:${GATEWAY_PORT}/api/rest_j/v1/dss/framework/project/appconn/${APPCONN_NAME}/load + curl -H "Token-Code:" -H "Token-User:hadoop" -X GET http://${GATEWAY_INSTALL_IP}:${GATEWAY_PORT}/api/rest_j/v1/dss/framework/project/appconn/${APPCONN_NAME}/load isSuccess "reload the plugin of $APPCONN_NAME AppConn in dss-framework-project." echo "Now please wait for 5 minutes, then all of the DSS micro-services will refresh the ${APPCONN_NAME} AppConn plugin." echo "" diff --git a/dss-apps/dss-datawarehouse-design/dss-data-warehouse-client/src/test/scala/com/webank/wedatasphere/warehouse/client/DwLayerRemoteClientTest.scala b/dss-apps/dss-datawarehouse-design/dss-data-warehouse-client/src/test/scala/com/webank/wedatasphere/warehouse/client/DwLayerRemoteClientTest.scala index 18285736e0..2ce81e0ad7 100644 --- a/dss-apps/dss-datawarehouse-design/dss-data-warehouse-client/src/test/scala/com/webank/wedatasphere/warehouse/client/DwLayerRemoteClientTest.scala +++ b/dss-apps/dss-datawarehouse-design/dss-data-warehouse-client/src/test/scala/com/webank/wedatasphere/warehouse/client/DwLayerRemoteClientTest.scala @@ -18,8 +18,8 @@ object DwLayerRemoteClientTest { .retryEnabled(false) .readTimeout(30000L) .setAuthenticationStrategy(new StaticAuthenticationStrategy()) - .setAuthTokenKey("BML-AUTH") - .setAuthTokenValue("BML-AUTH") + .setAuthTokenKey("") + .setAuthTokenValue("") .setDWSVersion("v1") .build() diff --git a/dss-orchestrator/orchestrators/dss-workflow/dss-workflow-server/src/main/java/com/webank/wedatasphere/dss/workflow/service/impl/DSSFlowServiceImpl.java b/dss-orchestrator/orchestrators/dss-workflow/dss-workflow-server/src/main/java/com/webank/wedatasphere/dss/workflow/service/impl/DSSFlowServiceImpl.java index 16d4c7d8f7..e7f880a826 100644 --- a/dss-orchestrator/orchestrators/dss-workflow/dss-workflow-server/src/main/java/com/webank/wedatasphere/dss/workflow/service/impl/DSSFlowServiceImpl.java +++ b/dss-orchestrator/orchestrators/dss-workflow/dss-workflow-server/src/main/java/com/webank/wedatasphere/dss/workflow/service/impl/DSSFlowServiceImpl.java @@ -90,7 +90,7 @@ public class DSSFlowServiceImpl implements DSSFlowService { private static ContextService contextService = ContextServiceImpl.getInstance(); - private static final String TOKEN = CommonVars.apply("wds.dss.workspace.token", "BML-AUTH").getValue(); + private static final String TOKEN = CommonVars.apply("wds.dss.workspace.token", "").getValue(); @Override public DSSFlow getFlowByID(Long id) {