Package de.gsi.acc.remote.login
Class LoginController
- java.lang.Object
-
- de.gsi.acc.remote.login.LoginController
-
public class LoginController extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static io.javalin.core.security.AccessManageraccessManagerThe 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.StringgetSessionCurrentUser(io.javalin.http.Context ctx)static java.lang.StringgetSessionLocale(io.javalin.http.Context ctx)static voidregister()registers the login/logout and locale change listener
-
-
-
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
-
-