Make WebSession an abstract interface

This permits other alternative implementations of session management,
such as a stateless token like Gerrit used to support, or an external
product that provides user identity through other means, such as SSL
peer certificates authenticated on every HTTP request.

Change-Id: I43f315f0a19968010be3437d2a0baaab79834ac7
Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
Shawn O. Pearce
2011-09-08 19:03:07 -07:00
parent 28d20fb4a0
commit 93a4434a00
5 changed files with 231 additions and 180 deletions

View File

@@ -202,6 +202,7 @@ public class WebAppInitializer extends GuiceServletContextListener {
final List<Module> modules = new ArrayList<Module>();
modules.add(sshInjector.getInstance(WebModule.class));
modules.add(sshInjector.getInstance(WebSshGlueModule.class));
modules.add(CacheBasedWebSession.module());
return sysInjector.createChildInjector(modules);
}