Class UserLoginProvider
java.lang.Object
com.peterphi.usermanager.guice.authentication.UserLoginProvider
-
Field Summary
-
Constructor Summary
ConstructorDescriptionUserLoginProvider
(com.google.inject.Provider<UserAuthenticationService> authService, com.google.inject.Provider<javax.servlet.http.HttpServletRequest> requestProvider, com.google.inject.Provider<javax.servlet.http.HttpSession> sessionProvider, com.google.inject.Provider<AsynchronousActionService> asynchService) -
Method Summary
Modifier and TypeMethodDescriptionensureLoginOnSession
(javax.servlet.http.HttpSession session) Makes sure there is a UserLogin on a session; designed to be called by code unrelated to the regular login logic (the TemplateExceptionRenderer) to make sure there's at least an anonymous login session set up for that templaterget()
-
Field Details
-
LOGIN_SESSION_ATTRIBUTE
- See Also:
-
LOGIN_TIMEOUT
The maximum amount of time a login transaction is permitted to run before being abandoned
-
-
Constructor Details
-
UserLoginProvider
@Inject public UserLoginProvider(com.google.inject.Provider<UserAuthenticationService> authService, com.google.inject.Provider<javax.servlet.http.HttpServletRequest> requestProvider, com.google.inject.Provider<javax.servlet.http.HttpSession> sessionProvider, com.google.inject.Provider<AsynchronousActionService> asynchService)
-
-
Method Details
-
get
-
ensureLoginOnSession
Makes sure there is a UserLogin on a session; designed to be called by code unrelated to the regular login logic (the TemplateExceptionRenderer) to make sure there's at least an anonymous login session set up for that templater- Parameters:
session
-- Returns:
-