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