public class SneakyAutoLoginUtil extends Object
Constructor and Description |
---|
SneakyAutoLoginUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
logUserIn(ApplicationUser user,
javax.servlet.http.HttpServletRequest request) |
static boolean |
logUserIn(String username,
javax.servlet.http.HttpServletRequest request) |
static ApplicationUser |
logUserInByName(String username,
javax.servlet.http.HttpServletRequest request)
Attempt to authenticate the user with JIRA and return their details if successful.
|
@Nullable public static ApplicationUser logUserInByName(String username, javax.servlet.http.HttpServletRequest request)
username
- The name of the user to log in.request
- The request where the user will attempt to add authentication toApplicationUser
that was authenticated, or null if
something went wrong.public static boolean logUserIn(String username, javax.servlet.http.HttpServletRequest request)
public static boolean logUserIn(ApplicationUser user, javax.servlet.http.HttpServletRequest request)
Copyright © 2002-2019 Atlassian. All Rights Reserved.