Class Overview
Try to log a user in automatically behind-the-scenes without knowing their password.
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public Constructors
public
SneakyAutoLoginUtil
()
Public Methods
public
static
boolean
logUserIn
(String username, HttpServletRequest request)
public
static
boolean
logUserIn
(ApplicationUser user, HttpServletRequest request)
@Nullable
public
static
ApplicationUser
logUserInByName
(String username, HttpServletRequest request)
Attempt to authenticate the user with JIRA and return their details if successful.
Parameters
username
| The name of the user to log in. |
request
| The request where the user will attempt to add authentication to |
Returns
- the
ApplicationUser
that was authenticated, or null if
something went wrong.