Class UserLoginModule
java.lang.Object
com.google.inject.AbstractModule
com.peterphi.usermanager.guice.authentication.UserLoginModule
- All Implemented Interfaces:
com.google.inject.Module
public class UserLoginModule
extends com.google.inject.AbstractModule
Handles creating the (session scoped) UserLogin object
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
getLogin
(CurrentUser user) Auto-cast the user manager's CurrentUser to a UserLogingetUserAuthenticationService
(String backend, com.google.inject.Provider<InternalUserAuthenticationServiceImpl> internalProvider, com.google.inject.Provider<LocalAndLDAPAuthenticationService> ldapProvider) 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
-
Field Details
-
AUTHENTICATION_BACKEND
- See Also:
-
LOGIN_SESSION_ATTRIBUTE
- See Also:
-
JAXRS_SERVER_WEBAUTH_PROVIDER
- See Also:
-
-
Constructor Details
-
UserLoginModule
public UserLoginModule()
-
-
Method Details
-
configure
protected void configure()- Overrides:
configure
in classcom.google.inject.AbstractModule
-
getUserAuthenticationService
@Provides public UserAuthenticationService getUserAuthenticationService(String backend, com.google.inject.Provider<InternalUserAuthenticationServiceImpl> internalProvider, com.google.inject.Provider<LocalAndLDAPAuthenticationService> ldapProvider) -
getLogin
Auto-cast the user manager's CurrentUser to a UserLogin- Parameters:
user
-- Returns:
-