summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-fw/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'ecomp-sdk/epsdk-fw/src/main/java')
-rw-r--r--ecomp-sdk/epsdk-fw/src/main/java/org/openecomp/portalsdk/core/onboarding/util/SSOUtil.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/ecomp-sdk/epsdk-fw/src/main/java/org/openecomp/portalsdk/core/onboarding/util/SSOUtil.java b/ecomp-sdk/epsdk-fw/src/main/java/org/openecomp/portalsdk/core/onboarding/util/SSOUtil.java
index 67ac567d..87134d3c 100644
--- a/ecomp-sdk/epsdk-fw/src/main/java/org/openecomp/portalsdk/core/onboarding/util/SSOUtil.java
+++ b/ecomp-sdk/epsdk-fw/src/main/java/org/openecomp/portalsdk/core/onboarding/util/SSOUtil.java
@@ -17,9 +17,12 @@ public class SSOUtil {
* Constructs a path for this server, this app's context, etc.
*
* @param request
+ * HttpServletRequest
* @param response
+ * HttpServletResponse
* @param forwardPath
- * @return
+ * Path to forward user
+ * @return Redirect URL
*/
public static String getECOMPSSORedirectURL(HttpServletRequest request, HttpServletResponse response,
String forwardPath) {
@@ -29,13 +32,11 @@ public class SSOUtil {
try {
encodedAppURL = URLEncoder.encode(appURL, "UTF-8");
} catch (UnsupportedEncodingException ex) {
- logger.error("getECOMPSSORedirectURL: Failed to encode app URL "
- + appURL);
+ logger.error("getECOMPSSORedirectURL: Failed to encode app URL " + appURL);
}
String portalURL = PortalApiProperties.getProperty(PortalApiConstants.ECOMP_REDIRECT_URL);
if (portalURL == null || portalURL.length() == 0) {
- logger.error("getECOMPSSORedirectURL: Failed to get property " +
- PortalApiConstants.ECOMP_REDIRECT_URL);
+ logger.error("getECOMPSSORedirectURL: Failed to get property " + PortalApiConstants.ECOMP_REDIRECT_URL);
return null;
}
String redirectURL = portalURL + "?redirectUrl=" + encodedAppURL;