From b4edfb4ab9853ab84b66082f3f80386e282bd11f Mon Sep 17 00:00:00 2001 From: anhefti Date: Thu, 4 Mar 2021 14:50:53 +0100 Subject: [PATCH] code cleanup --- ...InstitutionalAuthenticationEntryPoint.java | 26 +------------------ 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/src/main/java/ch/ethz/seb/sebserver/gui/InstitutionalAuthenticationEntryPoint.java b/src/main/java/ch/ethz/seb/sebserver/gui/InstitutionalAuthenticationEntryPoint.java index c56f03fb..d497e66a 100644 --- a/src/main/java/ch/ethz/seb/sebserver/gui/InstitutionalAuthenticationEntryPoint.java +++ b/src/main/java/ch/ethz/seb/sebserver/gui/InstitutionalAuthenticationEntryPoint.java @@ -176,8 +176,7 @@ public final class InstitutionalAuthenticationEntryPoint implements Authenticati final String requestURI = request.getRequestURI(); if (requestURI.startsWith(this.remoteProctoringEndpoint)) { - // TODO try to verify if this is only the remoteProctoringEndpoint or with addition - // if there is addition, try redirect otherwise forward as is + final RequestDispatcher dispatcher = request .getServletContext() .getRequestDispatcher(this.remoteProctoringEndpoint); @@ -263,27 +262,4 @@ public final class InstitutionalAuthenticationEntryPoint implements Authenticati return null; } - /** TODO this seems not to work as expected. Different Theme is only possible in RAP on different - * entry-points and since entry-points are statically defined within the RAPConfiguration - * there is no possibility to apply them dynamically within an institution so far. - * - * @param institutionalEndpoint - * @return */ -// private boolean initInstitutionalBasedThemeEntryPoint(final String institutionalEndpoint) { -// try { -// final ApplicationContextImpl appContext = (ApplicationContextImpl) RWT.getApplicationContext(); -// final Map properties = new HashMap<>(); -// properties.put(WebClient.THEME_ID, "sms"); -// appContext.getEntryPointManager().register( -// institutionalEndpoint, -// new RAPSpringEntryPointFactory(), -// properties); -// -// return true; -// } catch (final Exception e) { -// log.warn("Failed to dynamically set entry point for institution: {}", institutionalEndpoint, e); -// return false; -// } -// } - } \ No newline at end of file