Class LoginController


  • public class LoginController
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static io.javalin.core.security.AccessManager accessManager
      The origin of the request (request.pathInfo()) is saved in the session so the user can be redirected back after login
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Set<io.javalin.core.security.Role> getSessionCurrentRoles​(io.javalin.http.Context ctx)  
      static java.lang.String getSessionCurrentUser​(io.javalin.http.Context ctx)  
      static java.lang.String getSessionLocale​(io.javalin.http.Context ctx)  
      static void register()
      registers the login/logout and locale change listener
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • accessManager

        public static final io.javalin.core.security.AccessManager accessManager
        The origin of the request (request.pathInfo()) is saved in the session so the user can be redirected back after login
    • Method Detail

      • getSessionCurrentRoles

        public static java.util.Set<io.javalin.core.security.Role> getSessionCurrentRoles​(io.javalin.http.Context ctx)
      • getSessionCurrentUser

        public static java.lang.String getSessionCurrentUser​(io.javalin.http.Context ctx)
      • getSessionLocale

        public static java.lang.String getSessionLocale​(io.javalin.http.Context ctx)
      • register

        public static void register()
        registers the login/logout and locale change listener