From 8c9a2037b5c0fed881a3ad6dd9cff364eed603d9 Mon Sep 17 00:00:00 2001 From: James Moger Date: Tue, 14 Jun 2011 16:55:13 -0400 Subject: Added AccessRestrictionFilter and simplified authentication. Replaced servlet container basic authentication with a custom servlet filter which performs the same function. The advantage to this is that the servlet container is now divorced from the webapp. The login service (realm) also simplified a great deal and removes its Jetty dependencies. Additionally, the basic authorization pop-up will be displayed as needed based on the repository's access restriction. This was necessary for view-restricted repositories with the RSS feature. Its also necessary for completely open repositories as before it would prompt for credentials. Improved feed syndication feature. --- src/com/gitblit/wicket/GitBlitWebApp.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/com/gitblit/wicket/GitBlitWebApp.java') diff --git a/src/com/gitblit/wicket/GitBlitWebApp.java b/src/com/gitblit/wicket/GitBlitWebApp.java index 472a11dc..cc54e003 100644 --- a/src/com/gitblit/wicket/GitBlitWebApp.java +++ b/src/com/gitblit/wicket/GitBlitWebApp.java @@ -122,7 +122,7 @@ public class GitBlitWebApp extends WebApplication { @Override public final String getConfigurationType() { - if (GitBlit.self().isDebugMode()) { + if (GitBlit.isDebugMode()) { return Application.DEVELOPMENT; } return Application.DEPLOYMENT; -- cgit v1.2.3