uisessiondata_priv.h
1 /*
2  * This file is part of signon
3  *
4  * Copyright (C) 2009-2010 Nokia Corporation.
5  * Copyright (C) 2012-2016 Canonical Ltd.
6  *
7  * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public License
11  * version 2.1 as published by the Free Software Foundation.
12  *
13  * This library is distributed in the hope that it will be useful, but
14  * WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
21  * 02110-1301 USA
22  */
23 #ifndef UISESSIONDATA_PRIV_H
24 #define UISESSIONDATA_PRIV_H
25 
26 #define SSOUI_KEY_ERROR QLatin1String("QueryErrorCode")
27 #define SSOUI_KEY_CAPTION QLatin1String("Caption")
28 #define SSOUI_KEY_MESSAGEID QLatin1String("QueryMessageId")
29 #define SSOUI_KEY_MESSAGE QLatin1String("QueryMessage")
30 #define SSOUI_KEY_ERROR_MESSAGE QLatin1String("ErrorMessage")
31 #define SSOUI_KEY_QUERYUSERNAME QLatin1String("QueryUserName")
32 #define SSOUI_KEY_USERNAME QLatin1String("UserName")
33 #define SSOUI_KEY_USERNAME_TEXT QLatin1String("UserNameText")
34 #define SSOUI_KEY_QUERYPASSWORD QLatin1String("QueryPassword")
35 #define SSOUI_KEY_PASSWORD QLatin1String("Secret")
36 #define SSOUI_KEY_PASSWORD_TEXT QLatin1String("PasswordText")
37 #define SSOUI_KEY_REMEMBER QLatin1String("RememberPassword")
38 /* 2 factor authentication field */
39 #define SSOUI_KEY_QUERY2FA QLatin1String("Query2fa")
40 #define SSOUI_KEY_2FA QLatin1String("2fa")
41 #define SSOUI_KEY_2FA_TEXT QLatin1String("2faText")
42 /* Text for the login button */
43 #define SSOUI_KEY_LOGIN_TEXT QLatin1String("LoginText")
44 #define SSOUI_KEY_SHOWREALM QLatin1String("ShowRealm")
45 #define SSOUI_KEY_REALM QLatin1String("Realm")
46 #define SSOUI_KEY_NETWORKPROXY QLatin1String("NetworkProxy")
47 #define SSOUI_KEY_UIPOLICY QLatin1String("UiPolicy")
48 #define SSOUI_KEY_OPENURL QLatin1String("OpenUrl")
49 #define SSOUI_KEY_FINALURL QLatin1String("FinalUrl")
50 #define SSOUI_KEY_URLRESPONSE QLatin1String("UrlResponse")
51 #define SSOUI_KEY_CAPTCHAURL QLatin1String("CaptchaUrl")
52 #define SSOUI_KEY_CAPTCHAIMG QLatin1String("CaptchaImage") //QByteArray !!!
53 #define SSOUI_KEY_CAPTCHARESP QLatin1String("CaptchaResponse")
54 #define SSOUI_KEY_REQUESTID QLatin1String("requestId") //id of request, used for cancellation
55 #define SSOUI_KEY_REFRESH QLatin1String("refreshRequired") //id of request, used for cancellation
56 #define SSOUI_KEY_WATCHDOG QLatin1String("watchdog") // automatic behavior of dialog
57 #define SSOUI_KEY_STORED_IDENTITY QLatin1String("StoredIdentity") /* flag whether
58  the credentials are stored or not */
59 #define SSOUI_KEY_IDENTITY QLatin1String("Identity") // Credentials ID
60 #define SSOUI_KEY_FORGOTPASSWORD QLatin1String("ForgotPassword")
61 #define SSOUI_KEY_FORGOTPASSWORDURL QLatin1String("ForgotPasswordUrl")
62 #define SSOUI_KEY_REPLYCOOKIES QLatin1String("ReplyCookies")
63 #define SSOUI_KEY_WINDOWID QLatin1String("WindowId")
64 #define SSOUI_KEY_CONFIRM QLatin1String("Confirm")
65 #define SSOUI_KEY_ICON QLatin1String("Icon")
66 #define SSOUI_KEY_TITLE QLatin1String("Title")
67 #define SSOUI_KEY_CONFIRMCOUNT QLatin1String("ConfirmCount")
68 /* Embed the signon-ui in the window given by SSOUI_KEY_WINDOWID */
69 #define SSOUI_KEY_EMBEDDED QLatin1String("Embedded")
70 
71 /* Contains the original request parameters, as sent from the application */
72 #define SSOUI_KEY_CLIENT_DATA QLatin1String("ClientData")
73 
74 /* Method and mechanism; these could be used, along with the IDENTITY
75  * and CLIENT_DATA keys above, to replay the authentication. */
76 #define SSOUI_KEY_METHOD QLatin1String("Method")
77 #define SSOUI_KEY_MECHANISM QLatin1String("Mechanism")
78 
79 /* Process ID of the client application */
80 #define SSOUI_KEY_PID QLatin1String("Pid")
81 /* Application ID (security context) of the client application */
82 #define SSOUI_KEY_APP_ID QLatin1String("AppId")
83 
84 #define SSOUI_KEY_SLOT_ACCEPT "accept"
85 #define SSOUI_KEY_SLOT_REJECT "reject"
86 #define SSOUI_KEY_SLOT_REFRESH "refresh"
87 
88 #define SSOUI_KEY_STORAGE_KEYS_UNAVAILABLE \
89  QLatin1String("SecStorageKeysUnavailable")
90 
91 #define SSOUI_KEY_UNABLE_TO_QUERY_STORAGE_KEYS \
92  QLatin1String("SecStorageUnableQueryKeys")
93 
94 #endif /* UISESSIONDATA_PRIV_H */