Class WebappAuthenticationModule
java.lang.Object
com.google.inject.AbstractModule
com.peterphi.std.guice.web.rest.auth.userprovider.WebappAuthenticationModule
- All Implemented Interfaces:
com.google.inject.Module
public class WebappAuthenticationModule
extends com.google.inject.AbstractModule
-
Constructor Summary
ConstructorDescriptionWebappAuthenticationModule
(com.codahale.metrics.MetricRegistry metrics, List<String> providerNames, GuiceConfig config) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
getCurrentUser
(com.google.inject.Injector injector, javax.servlet.http.HttpServletRequest request) Methods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
Constructor Details
-
WebappAuthenticationModule
public WebappAuthenticationModule(com.codahale.metrics.MetricRegistry metrics, List<String> providerNames, GuiceConfig config)
-
-
Method Details
-
configure
protected void configure()- Overrides:
configure
in classcom.google.inject.AbstractModule
-
getCurrentUser
@Provides public CurrentUser getCurrentUser(com.google.inject.Injector injector, javax.servlet.http.HttpServletRequest request)
-