diff options
author | David Ostrovsky <david@ostrovsky.org> | 2014-07-04 23:28:21 +0200 |
---|---|---|
committer | David Ostrovsky <david@ostrovsky.org> | 2014-07-07 10:47:20 +0200 |
commit | f989cf3549193157d988c38f2f81c85329f719ad (patch) | |
tree | 1939e330f4a0629a2ea9750ea3bb57e793823009 /src/main/java/com/gitblit/guice/WebModule.java | |
parent | 1ad355302a3daf0962f8e20538f6b4c4a9c8329a (diff) | |
download | gitblit-ticket/138.tar.gz gitblit-ticket/138.zip |
GitHub OAuth login for GitBlitticket/138
Diffstat (limited to 'src/main/java/com/gitblit/guice/WebModule.java')
-rw-r--r-- | src/main/java/com/gitblit/guice/WebModule.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/com/gitblit/guice/WebModule.java b/src/main/java/com/gitblit/guice/WebModule.java index 5b569182..35ef5725 100644 --- a/src/main/java/com/gitblit/guice/WebModule.java +++ b/src/main/java/com/gitblit/guice/WebModule.java @@ -19,6 +19,7 @@ import java.util.HashMap; import java.util.Map; import com.gitblit.Constants; +import com.gitblit.auth.github.HttpGitHubOAuthModule; import com.gitblit.servlet.BranchGraphServlet; import com.gitblit.servlet.DownloadZipFilter; import com.gitblit.servlet.DownloadZipServlet; @@ -92,6 +93,11 @@ public class WebModule extends ServletModule { params.put(GitblitWicketFilter.FILTER_MAPPING_PARAM, ALL); params.put(GitblitWicketFilter.IGNORE_PATHS_PARAM, toIgnore); filter(ALL).through(GitblitWicketFilter.class, params); + + //if (AUTH_METHOD == GITHUB_OAUTH) { + if (true) { + install(new HttpGitHubOAuthModule()); + } } private String fuzzy(String path) { |