public class

SneakyAutoLoginUtil

extends Object
java.lang.Object
   ↳ com.atlassian.jira.user.util.SneakyAutoLoginUtil

Class Overview

Try to log a user in automatically behind-the-scenes without knowing their password.

Summary

Public Constructors
SneakyAutoLoginUtil()
Public Methods
static boolean logUserIn(String username, HttpServletRequest request)
static boolean logUserIn(ApplicationUser user, HttpServletRequest request)
@Nullable static ApplicationUser logUserInByName(String username, HttpServletRequest request)
Attempt to authenticate the user with JIRA and return their details if successful.
[Expand]
Inherited Methods
From class java.lang.Object

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.