Add option to deny anonymous (i.e. unauthorized) access

This commit is contained in:
Mark LaCroix
2015-01-06 22:57:58 -05:00
parent 08b86232a8
commit 5d962dc5e4
6 changed files with 67 additions and 27 deletions

View File

@@ -14,6 +14,7 @@ class ScalatraBootstrap extends LifeCycle {
context.getFilterRegistration("basicAuthenticationFilter").addMappingForUrlPatterns(EnumSet.allOf(classOf[DispatcherType]), true, "/git/*")
// Register controllers
context.mount(new AnonymousAccessController, "/*")
context.mount(new IndexController, "/")
context.mount(new SearchController, "/")
context.mount(new FileUploadController, "/upload")