001/* 002 * (C) Copyright 2006-2007 Nuxeo SA (http://nuxeo.com/) and others. 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 * 016 * Contributors: 017 * Nuxeo - initial API and implementation 018 */ 019 020package org.nuxeo.ecm.platform.ui.web.auth; 021 022public final class NXAuthConstants { 023 024 public static final String PRINCIPAL_KEY = "org.nuxeo.ecm.Principal"; 025 026 public static final String USERNAME_KEY = "user_name"; 027 028 public static final String PASSWORD_KEY = "user_password"; 029 030 public static final String FORM_SUBMITTED_MARKER = "form_submitted_marker"; 031 032 public static final String USERIDENT_KEY = "org.nuxeo.ecm.login.identity"; 033 034 public static final String LOGINCONTEXT_KEY = "org.nuxeo.ecm.login.context"; 035 036 public static final String LOGIN_ERROR = "org.nuxeo.ecm.login.error"; 037 038 public static final String LOGIN_STATUS_CODE = "org.nuxeo.ecm.login.status.code"; 039 040 public static final String LOGOUT_PAGE = "logout"; 041 042 public static final String SWITCH_USER_PAGE = "swuser"; 043 044 public static final String PAGE_AFTER_SWITCH = "pageAfterSwitch"; 045 046 public static final String SWITCH_USER_KEY = "deputy"; 047 048 public static final String ERROR_CONNECTION_FAILED = "connection.error"; 049 050 public static final String ERROR_AUTHENTICATION_FAILED = "authentication.failed"; 051 052 public static final String ERROR_USERNAME_MISSING = "username.missing"; 053 054 public static final String FORCE_ANONYMOUS_LOGIN = "forceAnonymousLogin"; 055 056 public static final String REQUESTED_URL = "requestedUrl"; 057 058 public static final String SECURITY_ERROR = "securityError"; 059 060 public static final String LOGIN_MISSING = "loginMissing"; 061 062 public static final String LOGIN_CONNECTION_FAILED = "connectionFailed"; 063 064 public static final String LOGIN_FAILED = "loginFailed"; 065 066 public static final String DISABLE_REDIRECT_REQUEST_KEY = "nuxeo.disable.redirect.wrapper"; 067 068 public static final String SSO_INITIAL_URL_REQUEST_KEY = "sso.initial.url.request"; 069 070 public static final String START_PAGE_SAVE_KEY = "Nuxeo5_Start_Page"; 071 072 public static final String LANGUAGE_PARAMETER = "language"; 073 074 public static final String SESSION_TIMEOUT = "nxtimeout"; 075 076 @Deprecated 077 // because of typo. 078 public static final String PASSORD_KEY = "user_password"; 079 080 // Constant utility class. 081 private NXAuthConstants() { 082 } 083 084}