public class Logout extends JiraWebActionSupport
JiraWebActionSupport.MessageTypeI18nHelper.BeanFactoryErrorCollection.ReasonISSUE_NOT_FOUND_RESULT, log, PERMISSION_VIOLATION_RESULT, request, RETURN_URL_PARAMETER, savedFilters, SECURITY_BREACH_RESULT| Constructor and Description |
|---|
Logout(LoginManager loginManager,
XsrfInvocationChecker xsrfInvocationChecker,
com.atlassian.seraph.service.rememberme.RememberMeService rememberMeService,
JiraAuthenticationContext authenticationContext) |
| Modifier and Type | Method and Description |
|---|---|
String |
doDefault()
Checks the JIRA application properties to see whether log-out confirmation is enabled, logs the user out if
necessary, and renders the view accordingly.
|
protected String |
doExecute()
Logs the user out of JIRA and shows the log-out page.
|
addError, addErrorCollection, addErrorMessage, addErrorMessageByKeyIfAbsent, addErrorMessageIfAbsent, addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, addMessageToResponse, addReason, addReasons, checkIfUrlIsAllowed, execute, forceRedirect, getActionName, getAdministratorContactLink, getApplicationProperties, getAuthorizationSupport, getComponentInstanceOfType, getConglomerateCookieValue, getConstantsManager, getDateFormat, getDateTimeFormat, getDateTimeFormatter, getDefaultResourceBundle, getDescTranslation, getDescTranslation, getDmyDateFormatter, getEmptyResponse, getErrorMessages, getErrors, getField, getFlushedErrorMessages, getGlobalPermissionManager, getHint, getHintManager, getHttpRequest, getHttpResponse, getHttpSession, getI18nHelper, getJiraContactHelper, getJiraServiceContext, getKeysForPrefix, getLanguage, getLocale, getLoggedInApplicationUser, getLoggedInUser, getNameTranslation, getNameTranslation, getOfBizDelegator, getOutlookDate, getPermissionManager, getProjectManager, getRandomHint, getReasons, getRedirect, getRedirect, getRedirectSanitiser, getRequestSourceType, getResourceBundle, getResult, getReturnUrl, getReturnUrlForCancelLink, getSearchSortDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getServletContext, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTimeFormat, getUnescapedText, getUntransformedRawText, getUriValidator, getUserFullName, getUserManager, getUserPreferences, getUserProjectHistoryManager, getVersionManager, getWebworkStack, getWebworkStack, getXsrfToken, hasAnyErrors, hasErrorMessage, hasErrorMessageByKey, hasGlobalPermission, hasGlobalPermission, hasIssuePermission, hasIssuePermission, hasIssuePermission, hasPermission, hasProjectPermission, hasProjectPermission, htmlEncode, insertContextPath, isAdministrator, isIndexing, isInlineDialogMode, isKeyDefined, isSystemAdministrator, isUserExists, isUserExistsByKey, isUserExistsByName, removeKeyOrAddError, returnComplete, returnComplete, returnCompleteWithInlineRedirect, returnCompleteWithInlineRedirectAndMsg, returnCompleteWithInlineRedirectAndMsg, returnMsgToUser, returnMsgToUser, setConglomerateCookieValue, setInline, setReasons, setReturnUrl, setSelectedProjectId, tagMauEventWithApplication, tagMauEventWithProject, urlEncodeaddError, addErrorMessage, doValidation, getCommandName, getHasErrorMessages, getHasErrors, getPropertyEditorMessage, getTexts, getTexts, getTimezone, invalidInput, invokeCommand, isCommand, setCommand, setErrorMessages, setErrors, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddError, addErrorMessage, setErrorMessagespublic Logout(LoginManager loginManager, XsrfInvocationChecker xsrfInvocationChecker, com.atlassian.seraph.service.rememberme.RememberMeService rememberMeService, JiraAuthenticationContext authenticationContext)
protected String doExecute() throws Exception
JiraLogoutServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)doExecute in class webwork.action.ActionSupportLOGOUT 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.
Exceptionpublic 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)
doDefault in class webwork.action.ActionSupportCONFIRM 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.
ExceptionCopyright © 2002-2024 Atlassian. All Rights Reserved.