From 8f094d0d068fa81ef87c0eb9bd1247b3008a30e9 Mon Sep 17 00:00:00 2001 From: Jose Gonzalez Date: Tue, 16 Apr 2024 07:15:09 -0500 Subject: [PATCH] fix(agama-inbound): make method urlBeforeContextPath public (#8318) fix: make method visible #8317 Signed-off-by: jgomer2001 --- .../src/main/java/io/jans/util/NetworkUtils.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/jans-auth-server/agama/inboundID/src/main/java/io/jans/util/NetworkUtils.java b/jans-auth-server/agama/inboundID/src/main/java/io/jans/util/NetworkUtils.java index b569bf8222b..0bb6dba9705 100644 --- a/jans-auth-server/agama/inboundID/src/main/java/io/jans/util/NetworkUtils.java +++ b/jans-auth-server/agama/inboundID/src/main/java/io/jans/util/NetworkUtils.java @@ -27,11 +27,6 @@ public class NetworkUtils { private static Logger LOG = LoggerFactory.getLogger(NetworkUtils.class); - private static String urlBeforeContextPath() { - HttpServletRequest req = CdiUtil.bean(HttpServletRequest.class); - return req.getScheme() + "://" + req.getServerName(); - } - public static String makeRedirectUri() { return urlBeforeContextPath() + "/jans-auth/fl/callback"; } @@ -88,6 +83,11 @@ public static Map mapFromGetRequestWithToken(String url, String } + public static String urlBeforeContextPath() { + HttpServletRequest req = CdiUtil.bean(HttpServletRequest.class); + return req.getScheme() + "://" + req.getServerName(); + } + private NetworkUtils() { } }