uisessiondata_priv.h
00001 /*
00002  * This file is part of signon
00003  *
00004  * Copyright (C) 2009-2010 Nokia Corporation.
00005  * Copyright (C) 2012-2016 Canonical Ltd.
00006  *
00007  * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
00008  *
00009  * This library is free software; you can redistribute it and/or
00010  * modify it under the terms of the GNU Lesser General Public License
00011  * version 2.1 as published by the Free Software Foundation.
00012  *
00013  * This library is distributed in the hope that it will be useful, but
00014  * WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
00016  * Lesser General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU Lesser General Public
00019  * License along with this library; if not, write to the Free Software
00020  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
00021  * 02110-1301 USA
00022  */
00023 #ifndef UISESSIONDATA_PRIV_H
00024 #define UISESSIONDATA_PRIV_H
00025 
00026 #define SSOUI_KEY_ERROR           QLatin1String("QueryErrorCode")
00027 #define SSOUI_KEY_CAPTION         QLatin1String("Caption")
00028 #define SSOUI_KEY_MESSAGEID       QLatin1String("QueryMessageId")
00029 #define SSOUI_KEY_MESSAGE         QLatin1String("QueryMessage")
00030 #define SSOUI_KEY_ERROR_MESSAGE   QLatin1String("ErrorMessage")
00031 #define SSOUI_KEY_QUERYUSERNAME   QLatin1String("QueryUserName")
00032 #define SSOUI_KEY_USERNAME        QLatin1String("UserName")
00033 #define SSOUI_KEY_USERNAME_TEXT   QLatin1String("UserNameText")
00034 #define SSOUI_KEY_QUERYPASSWORD   QLatin1String("QueryPassword")
00035 #define SSOUI_KEY_PASSWORD        QLatin1String("Secret")
00036 #define SSOUI_KEY_PASSWORD_TEXT   QLatin1String("PasswordText")
00037 #define SSOUI_KEY_REMEMBER        QLatin1String("RememberPassword")
00038 /* 2 factor authentication field */
00039 #define SSOUI_KEY_QUERY2FA        QLatin1String("Query2fa")
00040 #define SSOUI_KEY_2FA             QLatin1String("2fa")
00041 #define SSOUI_KEY_2FA_TEXT        QLatin1String("2faText")
00042 /* Text for the login button */
00043 #define SSOUI_KEY_LOGIN_TEXT      QLatin1String("LoginText")
00044 #define SSOUI_KEY_SHOWREALM       QLatin1String("ShowRealm")
00045 #define SSOUI_KEY_REALM           QLatin1String("Realm")
00046 #define SSOUI_KEY_NETWORKPROXY    QLatin1String("NetworkProxy")
00047 #define SSOUI_KEY_UIPOLICY        QLatin1String("UiPolicy")
00048 #define SSOUI_KEY_OPENURL         QLatin1String("OpenUrl")
00049 #define SSOUI_KEY_FINALURL        QLatin1String("FinalUrl")
00050 #define SSOUI_KEY_URLRESPONSE     QLatin1String("UrlResponse")
00051 #define SSOUI_KEY_CAPTCHAURL      QLatin1String("CaptchaUrl")
00052 #define SSOUI_KEY_CAPTCHAIMG      QLatin1String("CaptchaImage") //QByteArray !!!
00053 #define SSOUI_KEY_CAPTCHARESP     QLatin1String("CaptchaResponse")
00054 #define SSOUI_KEY_REQUESTID       QLatin1String("requestId") //id of request, used for cancellation
00055 #define SSOUI_KEY_REFRESH         QLatin1String("refreshRequired") //id of request, used for cancellation
00056 #define SSOUI_KEY_WATCHDOG        QLatin1String("watchdog")         // automatic behavior of dialog
00057 #define SSOUI_KEY_STORED_IDENTITY QLatin1String("StoredIdentity") /* flag whether
00058                                                                      the credentials are stored or not */
00059 #define SSOUI_KEY_IDENTITY        QLatin1String("Identity") // Credentials ID
00060 #define SSOUI_KEY_FORGOTPASSWORD    QLatin1String("ForgotPassword")
00061 #define SSOUI_KEY_FORGOTPASSWORDURL QLatin1String("ForgotPasswordUrl")
00062 #define SSOUI_KEY_REPLYCOOKIES      QLatin1String("ReplyCookies")
00063 #define SSOUI_KEY_WINDOWID          QLatin1String("WindowId")
00064 #define SSOUI_KEY_CONFIRM           QLatin1String("Confirm")
00065 #define SSOUI_KEY_ICON              QLatin1String("Icon")
00066 #define SSOUI_KEY_TITLE             QLatin1String("Title")
00067 #define SSOUI_KEY_CONFIRMCOUNT      QLatin1String("ConfirmCount")
00068 /* Embed the signon-ui in the window given by SSOUI_KEY_WINDOWID */
00069 #define SSOUI_KEY_EMBEDDED          QLatin1String("Embedded")
00070 
00071 /* Contains the original request parameters, as sent from the application */
00072 #define SSOUI_KEY_CLIENT_DATA       QLatin1String("ClientData")
00073 
00074 /* Method and mechanism; these could be used, along with the IDENTITY
00075  * and CLIENT_DATA keys above, to replay the authentication. */
00076 #define SSOUI_KEY_METHOD            QLatin1String("Method")
00077 #define SSOUI_KEY_MECHANISM         QLatin1String("Mechanism")
00078 
00079 /* Process ID of the client application */
00080 #define SSOUI_KEY_PID               QLatin1String("Pid")
00081 /* Application ID (security context) of the client application */
00082 #define SSOUI_KEY_APP_ID            QLatin1String("AppId")
00083 
00084 #define SSOUI_KEY_SLOT_ACCEPT  "accept"
00085 #define SSOUI_KEY_SLOT_REJECT  "reject"
00086 #define SSOUI_KEY_SLOT_REFRESH "refresh"
00087 
00088 #define SSOUI_KEY_STORAGE_KEYS_UNAVAILABLE \
00089     QLatin1String("SecStorageKeysUnavailable")
00090 
00091 #define SSOUI_KEY_UNABLE_TO_QUERY_STORAGE_KEYS \
00092     QLatin1String("SecStorageUnableQueryKeys")
00093 
00094 #endif /* UISESSIONDATA_PRIV_H */