public class Logout extends JiraWebActionSupport
JiraWebActionSupport.MessageType
ErrorCollection.Reason
I18nHelper.BeanFactory
ISSUE_NOT_FOUND_RESULT, PERMISSION_VIOLATION_RESULT, request, RETURN_URL_PARAMETER, savedFilters
log
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, addMessageToResponse, addReason, addReasons, forceRedirect, getAdministratorContactLink, getApplicationProperties, getAuthorizationSupport, getConglomerateCookieValue, getConstantsManager, getDateFormat, getDateTimeFormat, getDateTimeFormatter, getDescTranslation, getDescTranslation, getDmyDateFormatter, getEmptyResponse, getErrorMessages, getErrors, getField, getFlushedErrorMessages, getGlobalPermissionManager, getHint, getHintManager, getHttpRequest, getHttpResponse, getHttpSession, getJiraContactHelper, getJiraServiceContext, getLanguage, getLoggedInApplicationUser, getLoggedInUser, getNameTranslation, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getRandomHint, getReasons, getRedirect, getRedirect, getRedirectSanitiser, getRequestSourceType, getReturnUrl, getReturnUrlForCancelLink, getSearchSortDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getServletContext, getTimeFormat, getUriValidator, getUserFullName, getUserManager, getUserProjectHistoryManager, getVersionManager, getWebworkStack, getWebworkStack, getXsrfToken, hasErrorMessage, hasErrorMessageByKey, hasGlobalPermission, hasGlobalPermission, hasIssuePermission, hasIssuePermission, hasIssuePermission, hasPermission, hasProjectPermission, hasProjectPermission, htmlEncode, insertContextPath, isInlineDialogMode, isSystemAdministrator, isUserExists, isUserExistsByKey, isUserExistsByName, returnComplete, returnComplete, returnCompleteWithInlineRedirect, returnCompleteWithInlineRedirectAndMsg, returnCompleteWithInlineRedirectAndMsg, returnMsgToUser, returnMsgToUser, setConglomerateCookieValue, setInline, setReasons, setReturnUrl, setSelectedProjectId, tagMauEventWithApplication, tagMauEventWithProject, urlEncode
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, execute, getActionName, getComponentInstanceOfType, getDefaultResourceBundle, getI18nHelper, getKeysForPrefix, getLocale, getOfBizDelegator, getResourceBundle, getResult, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getUnescapedText, getUntransformedRawText, getUserPreferences, hasAnyErrors, isIndexing, isKeyDefined, removeKeyOrAddError
addError, addErrorMessage, doValidation, getCommandName, getHasErrorMessages, getHasErrors, getPropertyEditorMessage, getTexts, getTexts, getTimezone, invalidInput, invokeCommand, isCommand, setCommand, setErrorMessages, setErrors, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addError, addErrorMessage, addErrorMessages, addErrors, hasAnyErrors, setErrorMessages
public Logout(LoginManager loginManager, XsrfInvocationChecker xsrfInvocationChecker, com.atlassian.seraph.service.rememberme.RememberMeService rememberMeService, JiraAuthenticationContext authenticationContext)
protected String doExecute()
JiraLogoutServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
doExecute
in class webwork.action.ActionSupport
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.
public 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.
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.ActionSupport
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.
Copyright © 2002-2019 Atlassian. All Rights Reserved.