diff options
author | Tal Gitelman <tg851x@intl.att.com> | 2018-10-18 11:56:18 +0300 |
---|---|---|
committer | Michael Lando <michael.lando@intl.att.com> | 2018-10-18 09:45:53 +0000 |
commit | a32cc5a0005811565638abb141639c22c5f2169d (patch) | |
tree | c225f95efa1bf5c0b09282330cd29b8b4c33d16d | |
parent | aae7adf8138d6fe38463b520259f46111ee56b45 (diff) |
update sdc portal integration
Change-Id: I28e183508ba9a729221a60403850784953807209
Issue-ID: SDC-1749
Signed-off-by: Tal Gitelman <tg851x@intl.att.com>
-rw-r--r-- | catalog-be/src/main/java/org/openecomp/sdc/be/ecomp/EcompIntImpl.java | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/ecomp/EcompIntImpl.java b/catalog-be/src/main/java/org/openecomp/sdc/be/ecomp/EcompIntImpl.java index 50d48d4ca7..480d8ebc5b 100644 --- a/catalog-be/src/main/java/org/openecomp/sdc/be/ecomp/EcompIntImpl.java +++ b/catalog-be/src/main/java/org/openecomp/sdc/be/ecomp/EcompIntImpl.java @@ -22,12 +22,9 @@ package org.openecomp.sdc.be.ecomp; import fj.data.Either; import org.onap.portalsdk.core.onboarding.crossapi.IPortalRestAPIService; -import org.onap.portalsdk.core.onboarding.crossapi.IPortalRestCentralService; import org.onap.portalsdk.core.onboarding.exception.CipherUtilException; import org.onap.portalsdk.core.onboarding.exception.PortalAPIException; import org.onap.portalsdk.core.onboarding.util.CipherUtil; -import org.onap.portalsdk.core.onboarding.util.KeyConstants; -import org.onap.portalsdk.core.onboarding.util.KeyProperties; import org.onap.portalsdk.core.onboarding.util.PortalApiProperties; import org.onap.portalsdk.core.restful.domain.EcompRole; import org.onap.portalsdk.core.restful.domain.EcompUser; @@ -46,7 +43,6 @@ import org.springframework.context.ApplicationContext; import org.springframework.web.context.ContextLoader; import javax.servlet.http.HttpServletRequest; -import java.util.HashMap; import java.util.LinkedList; import java.util.List; import java.util.Map; @@ -387,7 +383,7 @@ public class EcompIntImpl implements IPortalRestAPIService { if (USERNAME != null && PASSWORD != null) { try { - if (CipherUtil.decryptPKC(USERNAME).equals(CipherUtil.decryptPKC(portal_user)) && + if (USERNAME.equals(CipherUtil.decryptPKC(portal_user)) && CipherUtil.decryptPKC(PASSWORD).equals(CipherUtil.decryptPKC(portal_key))) { log.debug("User authenticated - Username: {}", USERNAME); return true; @@ -397,7 +393,6 @@ public class EcompIntImpl implements IPortalRestAPIService { return false; } } - log.debug("User authentication failed"); return false; } |