Skip to content

Commit

Permalink
fix(agama-inbound): make method urlBeforeContextPath public (#8318)
Browse files Browse the repository at this point in the history
fix: make method visible #8317

Signed-off-by: jgomer2001 <[email protected]>
  • Loading branch information
jgomer2001 committed Apr 16, 2024
1 parent 1ffb5ff commit 8f094d0
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
Expand Down Expand Up @@ -88,6 +83,11 @@ public static Map<String, Object> mapFromGetRequestWithToken(String url, String

}

public static String urlBeforeContextPath() {
HttpServletRequest req = CdiUtil.bean(HttpServletRequest.class);
return req.getScheme() + "://" + req.getServerName();
}

private NetworkUtils() { }

}

0 comments on commit 8f094d0

Please sign in to comment.