From 7d05e16f0ab24ba8918bd4466d50a9fb77571552 Mon Sep 17 00:00:00 2001 From: Tal Gitelman Date: Wed, 10 Oct 2018 14:52:54 +0300 Subject: update sdc portal integration Change-Id: I6e17434f753c2eaa562da80c1eade8688601f510 Issue-ID: SDC-1749 Signed-off-by: Tal Gitelman --- .../java/org/openecomp/sdc/fe/servlets/PortalServlet.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'catalog-fe/src/main/java') diff --git a/catalog-fe/src/main/java/org/openecomp/sdc/fe/servlets/PortalServlet.java b/catalog-fe/src/main/java/org/openecomp/sdc/fe/servlets/PortalServlet.java index 408529f710..56a41988a1 100644 --- a/catalog-fe/src/main/java/org/openecomp/sdc/fe/servlets/PortalServlet.java +++ b/catalog-fe/src/main/java/org/openecomp/sdc/fe/servlets/PortalServlet.java @@ -20,9 +20,9 @@ package org.openecomp.sdc.fe.servlets; -import org.openecomp.portalsdk.core.onboarding.util.CipherUtil; -import org.openecomp.portalsdk.core.onboarding.util.PortalApiConstants; -import org.openecomp.portalsdk.core.onboarding.util.PortalApiProperties; +import org.onap.portalsdk.core.onboarding.util.CipherUtil; +import org.onap.portalsdk.core.onboarding.util.PortalApiConstants; +import org.onap.portalsdk.core.onboarding.util.PortalApiProperties; import org.openecomp.sdc.common.impl.MutableHttpServletRequest; import org.openecomp.sdc.fe.Constants; import org.openecomp.sdc.fe.config.Configuration; @@ -283,8 +283,10 @@ public class PortalServlet extends HttpServlet { if (cookie.getName().equals(Constants.ECOMP_PORTAL_COOKIE)) userIdcookie = cookie; if (userIdcookie != null) { - userId = CipherUtil.decrypt(userIdcookie.getValue(), - PortalApiProperties.getProperty(PortalApiConstants.Decryption_Key)); + CipherUtil.decryptPKC(userIdcookie.getValue()); + //Todo Remove after smoke test & review + /*userId = CipherUtil.decrypt(userIdcookie.getValue(), + PortalApiProperties.getProperty(PortalApiConstants.CSP_GATE_KEEPER_PROD_KEY));*/ } return userId; -- cgit 1.2.3-korg