Class UserLoginProvider

java.lang.Object
com.peterphi.usermanager.guice.authentication.UserLoginProvider
All Implemented Interfaces:
com.google.inject.Provider<UserLogin>, javax.inject.Provider<UserLogin>

public class UserLoginProvider extends Object implements com.google.inject.Provider<UserLogin>
  • Field Details

    • LOGIN_SESSION_ATTRIBUTE

      public static final String LOGIN_SESSION_ATTRIBUTE
      See Also:
    • LOGIN_TIMEOUT

      public static Timeout 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

      public UserLogin get()
      Specified by:
      get in interface com.google.inject.Provider<UserLogin>
      Specified by:
      get in interface javax.inject.Provider<UserLogin>
    • ensureLoginOnSession

      public UserLogin ensureLoginOnSession(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 templater
      Parameters:
      session -
      Returns: