Class Logout

java.lang.Object
webwork.action.ActionSupport
com.atlassian.jira.web.action.JiraWebActionSupport
com.atlassian.jira.web.action.user.Logout
All Implemented Interfaces:
ErrorCollection, I18nHelper, HttpServletVariables, AuthorizationSupport, Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware

public class Logout extends JiraWebActionSupport
See Also:
  • Constructor Details

  • Method Details

    • doExecute

      protected String doExecute() throws Exception
      Logs the user out of JIRA and shows the log-out page. For details of the logic behind the XSRF check see, JiraLogoutServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
      Overrides:
      doExecute in class webwork.action.ActionSupport
      Returns:
      LOGOUT if the user presents a valid xsrf token (his / her session hasn't expired).

      If the XSRF token is not valid, we return CONFIRM when there is an authenticated user; Otherwise, ALREADY_LOGGED_OUT is returned.

      Throws:
      Exception
    • doDefault

      public String doDefault() throws Exception

      Checks the JIRA application properties to see whether log-out confirmation is enabled, logs the user out if necessary, and renders the view accordingly.

      If the log-out confirmation property is enabled, it will take the user to a log-out confirmation page.

      Otherwise, it will log the user out and show the log-out page.

      The log-out confirmation page executes the doExecute() command.

      For details of the logic behind the XSRF check see, JiraLogoutServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)

      Overrides:
      doDefault in class webwork.action.ActionSupport
      Returns:
      When there's a valid XSRF token, CONFIRM if the application properties indicate that log-out s hould be confirmed for all users, if the user has remember turned on and the application property is set to "cookie" we return also return CONFIRM; Otherwise, LOGOUT is returned.

      If the XSRF token is not valid, we return CONFIRM when there is an authenticated user; Otherwise, ALREADY_LOGGED_OUT is returned.

      Throws:
      Exception