diff options
author | Tal Gitelman <tg851x@intl.att.com> | 2017-06-21 14:29:02 +0300 |
---|---|---|
committer | Tal Gitelman <tg851x@intl.att.com> | 2017-06-21 14:29:02 +0300 |
commit | aa8e3a02e993a9265fcc401e11f619955851ac30 (patch) | |
tree | 307537eff6657166d8cf4fe8b4a521d0ab497ebb /catalog-fe/src/main | |
parent | 1abcafb5c012cb4cd7b03669ce6ce4376b77d84e (diff) |
[sdc] fix issue in portal login
+ update swagger
Change-Id: I23cdaad7599480d418e6f2d59fb9ff59132b90ac
Signed-off-by: Tal Gitelman <tg851x@intl.att.com>
Diffstat (limited to 'catalog-fe/src/main')
-rw-r--r-- | catalog-fe/src/main/java/org/openecomp/sdc/fe/Constants.java | 1 | ||||
-rw-r--r-- | catalog-fe/src/main/java/org/openecomp/sdc/fe/servlets/PortalServlet.java | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/catalog-fe/src/main/java/org/openecomp/sdc/fe/Constants.java b/catalog-fe/src/main/java/org/openecomp/sdc/fe/Constants.java index a9f5c1294e..a64ba08d69 100644 --- a/catalog-fe/src/main/java/org/openecomp/sdc/fe/Constants.java +++ b/catalog-fe/src/main/java/org/openecomp/sdc/fe/Constants.java @@ -24,6 +24,7 @@ public class Constants { public static String HTTP_IV_USER = "HTTP_IV_USER"; public static String USER_ID = "USER_ID"; + public static String ECOMP_PORTAL_COOKIE = "UserId"; public static String HTTP_CSP_FIRSTNAME = "HTTP_CSP_FIRSTNAME"; public static String HTTP_CSP_LASTNAME = "HTTP_CSP_LASTNAME"; public static String HTTP_IV_REMOTE_ADDRESS = "HTTP_IV_REMOTE_ADDRESS"; 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 a743f98b18..53fbd04a43 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 @@ -283,7 +283,7 @@ public class PortalServlet extends HttpServlet { Cookie userIdcookie = null; if (cookies != null) for (Cookie cookie : cookies) - if (cookie.getName().equals(Constants.USER_ID)) + if (cookie.getName().equals(Constants.ECOMP_PORTAL_COOKIE)) userIdcookie = cookie; if (userIdcookie != null) { userId = CipherUtil.decrypt(userIdcookie.getValue(), |