improve error handling for failed authentication and not enough privileges

This commit is contained in:
Sebastian Sdorra
2014-03-15 16:12:14 +01:00
parent 54faa5cb56
commit b131d4b804
4 changed files with 126 additions and 4 deletions

View File

@@ -75,7 +75,7 @@ public class HgServletModule extends ServletModule
serve(MAPPING_HOOK).with(HgHookCallbackServlet.class);
// register hg cgi servlet
filter(MAPPING_HG).through(BasicAuthenticationFilter.class);
filter(MAPPING_HG).through(HgBasicAuthenticationFilter.class);
filter(MAPPING_HG).through(HgPermissionFilter.class);
serve(MAPPING_HG).with(HgCGIServlet.class);
}