| Top | Description |
#include <gsignond/gsignond-signonui-data.h> typedef GSignondSignonuiData; enum GSignondSignonuiError; const gchar * gsignond_signonui_data_get_captcha_response (GSignondSignonuiData *data); const gchar * gsignond_signonui_data_get_captcha_url (GSignondSignonuiData *data); const gchar * gsignond_signonui_data_get_caption (GSignondSignonuiData *data); gboolean gsignond_signonui_data_get_confirm (GSignondSignonuiData *data,gboolean *confirm); const gchar * gsignond_signonui_data_get_final_url (GSignondSignonuiData *data); const gchar * gsignond_signonui_data_get_forgot_password (GSignondSignonuiData *data); const gchar * gsignond_signonui_data_get_forgot_password_url (GSignondSignonuiData *data); const gchar * gsignond_signonui_data_get_message (GSignondSignonuiData *data); const gchar * gsignond_signonui_data_get_open_url (GSignondSignonuiData *data); const gchar * gsignond_signonui_data_get_password (GSignondSignonuiData *data); gboolean gsignond_signonui_data_get_query_error (GSignondSignonuiData *data,GSignondSignonuiError *error); gboolean gsignond_signonui_data_get_query_password (GSignondSignonuiData *data,gboolean *query_password); gboolean gsignond_signonui_data_get_query_username (GSignondSignonuiData *data,gboolean *query_username); gboolean gsignond_signonui_data_get_remember_password (GSignondSignonuiData *data,gboolean *remember_password); const gchar * gsignond_signonui_data_get_request_id (GSignondSignonuiData *data); const gchar * gsignond_signonui_data_get_test_reply (GSignondSignonuiData *data); const gchar * gsignond_signonui_data_get_title (GSignondSignonuiData *data); const gchar * gsignond_signonui_data_get_url_response (GSignondSignonuiData *data); const gchar * gsignond_signonui_data_get_username (GSignondSignonuiData *data); void gsignond_signonui_data_set_captcha_response (GSignondSignonuiData *data,const gchar *response); void gsignond_signonui_data_set_captcha_url (GSignondSignonuiData *data,const gchar *url); void gsignond_signonui_data_set_caption (GSignondSignonuiData *data,const gchar *caption); void gsignond_signonui_data_set_confirm (GSignondSignonuiData *data,gboolean confirm); void gsignond_signonui_data_set_final_url (GSignondSignonuiData *data,const gchar *url); void gsignond_signonui_data_set_forgot_password (GSignondSignonuiData *data,const gchar *forgot); void gsignond_signonui_data_set_forgot_password_url (GSignondSignonuiData *data,const gchar *url); void gsignond_signonui_data_set_message (GSignondSignonuiData *data,const gchar *message); void gsignond_signonui_data_set_open_url (GSignondSignonuiData *data,const gchar *url); void gsignond_signonui_data_set_password (GSignondSignonuiData *data,const gchar *password); void gsignond_signonui_data_set_query_error (GSignondSignonuiData *data,GSignondSignonuiError error); void gsignond_signonui_data_set_query_password (GSignondSignonuiData *data,gboolean query); void gsignond_signonui_data_set_query_username (GSignondSignonuiData *data,gboolean query); void gsignond_signonui_data_set_remember_password (GSignondSignonuiData *data,gboolean remember); void gsignond_signonui_data_set_request_id (GSignondSignonuiData *data,const gchar *id); void gsignond_signonui_data_set_test_reply (GSignondSignonuiData *data,const gchar *reply); void gsignond_signonui_data_set_title (GSignondSignonuiData *data,const gchar *title); void gsignond_signonui_data_set_url_response (GSignondSignonuiData *data,const gchar *response); void gsignond_signonui_data_set_username (GSignondSignonuiData *data,const gchar *username);
This file provides commonly used parameters for user interaction during authentication sessions. For each of those a getter and setter is defined, on GSignondSessionData container.
This container is used in two directions: by plugins to specify the parameters for user interaction that is then performed by SignonUI component, and by SignonUI to return the results of that interaction to the plugins. See GSignondPlugin for the user interaction API from the plugins' perspective.
The parameters that are set by the plugin and read by signon UI are captcha url, caption, confirm, final url, forgot password, forgot password url, message, open url, password, query password, query username, remember password, request id, test reply values, title, username.
The parameters that are returned by signon UI to the plugin are captcha response, password, query error code, remember password, url response.
typedef GSignondDictionary GSignondSignonuiData;
GSignondSignonuiData is simply a typedef for GSignondDictionary, which
means the developers may also freely use methods associated with that structure,
in particular for creating a GSignondSignonuiData object with
gsignond_dictionary_new().
typedef enum {
SIGNONUI_ERROR_NONE = 0,
SIGNONUI_ERROR_GENERAL,
SIGNONUI_ERROR_NO_SIGNONUI,
SIGNONUI_ERROR_BAD_PARAMETERS,
SIGNONUI_ERROR_CANCELED,
SIGNONUI_ERROR_NOT_AVAILABLE,
SIGNONUI_ERROR_BAD_URL,
SIGNONUI_ERROR_BAD_CAPTCHA,
SIGNONUI_ERROR_BAD_CAPTCHA_URL,
SIGNONUI_ERROR_REFRESH_FAILED,
SIGNONUI_ERROR_FORBIDDEN,
SIGNONUI_ERROR_FORGOT_PASSWORD
} GSignondSignonuiError;
This enum defines errors that may happen during user interaction.
| No errors | |
| Generic error during interaction | |
| Cannot send request to signon-ui | |
| Signon-Ui cannot create dialog based on the given UiSessionData | |
| User canceled action. Plugin should not retry automatically after this | |
| Requested ui is not available. For example browser cannot be started | |
| Given url was not valid | |
| Given captcha image was not valid | |
| Given url for capctha loading was not valid | |
| Refresh failed | |
| Showing ui forbidden by ui policy | |
| User pressed forgot password |
const gchar * gsignond_signonui_data_get_captcha_response
(GSignondSignonuiData *data);
A getter for the user's response to a captcha query.
|
a GSignondDictionary structure |
Returns : |
the string entered by the user in response to a captcha query. [transfer none] |
const gchar * gsignond_signonui_data_get_captcha_url
(GSignondSignonuiData *data);
A getter for the captcha URL.
|
a GSignondDictionary structure |
Returns : |
the URL to the captcha image to be verified by user. [transfer none] |
const gchar * gsignond_signonui_data_get_caption (GSignondSignonuiData *data);
A getter for the caption string. Caption tells the user which application/credentials/provider is requestion authentication.
|
a GSignondDictionary structure |
Returns : |
(transfer none) |
gboolean gsignond_signonui_data_get_confirm (GSignondSignonuiData *data,gboolean *confirm);
A getter for the confirm mode. In confirm mode the user is asked to enter an old password (which is compared to the supplied password), and a new password twice (which is returned).
|
a GSignondDictionary structure |
|
the value for the property is written here |
Returns : |
whether this property exists in the data dictionary or not. |
const gchar * gsignond_signonui_data_get_final_url
(GSignondSignonuiData *data);
A getter for the final URL. When the signon UI detects that the user is at the final URL (possibly with additional query or fragment parameters), it will close the window and return the full URL via url response property. This is used by redirection-based authentication, such as OAuth.
|
a GSignondDictionary structure |
Returns : |
(transfer none) |
const gchar * gsignond_signonui_data_get_forgot_password
(GSignondSignonuiData *data);
A getter for the forgot password string which is shown to the user as a link to reset the password or remind him of the password.
|
a GSignondDictionary structure |
Returns : |
(transfer none) |
const gchar * gsignond_signonui_data_get_forgot_password_url
(GSignondSignonuiData *data);
A getter for the forgot password URL, where the user can reset or request a reminder of the password.
|
a GSignondDictionary structure |
Returns : |
(transfer none) |
const gchar * gsignond_signonui_data_get_message (GSignondSignonuiData *data);
A getter for the message which is show to the user in the signon UI dialog.
|
a GSignondDictionary structure |
Returns : |
(transfer none) |
const gchar * gsignond_signonui_data_get_open_url (GSignondSignonuiData *data);
A getter for the URL that should be opened by signon UI.
|
a GSignondDictionary structure |
Returns : |
(transfer none) |
const gchar * gsignond_signonui_data_get_password (GSignondSignonuiData *data);
A getter for the password string.
|
a GSignondDictionary structure |
Returns : |
(transfer none) |
gboolean gsignond_signonui_data_get_query_error (GSignondSignonuiData *data,GSignondSignonuiError *error);
A getter for the UI interaction error. Signon UI sets this to SIGNONUI_ERROR_NONE if
there were no errors.
|
a GSignondDictionary structure |
|
the error is written here |
Returns : |
whether this property exists in the data dictionary or not. |
gboolean gsignond_signonui_data_get_query_password (GSignondSignonuiData *data,gboolean *query_password);
A getter for the query password property. It indicates whether the signon UI should ask the user for a password (and return it in the password property).
|
a GSignondDictionary structure |
|
the property is written here |
Returns : |
whether this property exists in the data dictionary or not. |
gboolean gsignond_signonui_data_get_query_username (GSignondSignonuiData *data,gboolean *query_username);
A getter for the query username property. It indicates whether the signon UI should ask the user for a username (and return it in the username property).
|
a GSignondDictionary structure |
|
the property is written here |
Returns : |
whether this property exists in the data dictionary or not. |
gboolean gsignond_signonui_data_get_remember_password (GSignondSignonuiData *data,gboolean *remember_password);
A getter for whether the password should be remembered.
|
a GSignondDictionary structure |
|
the property is written here |
Returns : |
whether this property exists in the data dictionary or not. |
const gchar * gsignond_signonui_data_get_request_id
(GSignondSignonuiData *data);
A getter for the dialog request id. The id identifies the dialog so that it can be refreshed or updated.
|
a GSignondDictionary structure |
Returns : |
(transfer none) |
const gchar * gsignond_signonui_data_get_test_reply
(GSignondSignonuiData *data);
A getter for the test reply values. It's used only by the signon ui implementations to test themselves.
|
a GSignondDictionary structure |
Returns : |
(transfer none) |
const gchar * gsignond_signonui_data_get_title (GSignondSignonuiData *data);
A getter for the UI dialog title.
|
a GSignondDictionary structure |
Returns : |
(transfer none) |
const gchar * gsignond_signonui_data_get_url_response
(GSignondSignonuiData *data);
A getter for the response URL. If the final URL was set in the request to the signon UI, and the signon UI detects that it has been reached, then the full final URL is returned using this property. This is used by redirection-based authentication such as OAauth.
|
a GSignondDictionary structure |
Returns : |
(transfer none) |
const gchar * gsignond_signonui_data_get_username (GSignondSignonuiData *data);
A getter for the username string.
|
a GSignondDictionary structure |
Returns : |
(transfer none) |
void gsignond_signonui_data_set_captcha_response (GSignondSignonuiData *data,const gchar *response);
A setter for the user's response to a captcha query.
|
a GSignondDictionary structure |
|
the string entered by the user in response to a captcha query. |
void gsignond_signonui_data_set_captcha_url (GSignondSignonuiData *data,const gchar *url);
A setter for the captcha URL.
|
a GSignondDictionary structure |
|
the URL to the captcha image to be verified by user |
void gsignond_signonui_data_set_caption (GSignondSignonuiData *data,const gchar *caption);
A setter for the caption string. Caption tells the user which application/credentials/provider is requestion authentication.
|
a GSignondDictionary structure |
|
the caption string |
void gsignond_signonui_data_set_confirm (GSignondSignonuiData *data,gboolean confirm);
A setter for the confirm mode. In confirm mode the user is asked to enter an old password (which is compared to the supplied password), and a new password twice (which is returned).
|
a GSignondDictionary structure |
|
the value for the property |
void gsignond_signonui_data_set_final_url (GSignondSignonuiData *data,const gchar *url);
A setter for the final URL. When the signon UI detects that the user is at the final URL (possibly with additional query or fragment parameters), it will close the window and return the full URL via url response property. This is used by redirection-based authentication, such as OAuth.
|
a GSignondDictionary structure |
|
the final url |
void gsignond_signonui_data_set_forgot_password (GSignondSignonuiData *data,const gchar *forgot);
A setter for the forgot password string, which is shown to the user as a link to reset the password or remind him of the password.
|
a GSignondDictionary structure |
|
the forgot password string |
void gsignond_signonui_data_set_forgot_password_url (GSignondSignonuiData *data,const gchar *url);
A setter for the forgot password URL, where the user can reset or request a reminder of the password.
|
a GSignondDictionary structure |
|
the forgot password URL |
void gsignond_signonui_data_set_message (GSignondSignonuiData *data,const gchar *message);
A setter for the message which is show to the user in the signon UI dialog.
|
a GSignondDictionary structure |
|
the message |
void gsignond_signonui_data_set_open_url (GSignondSignonuiData *data,const gchar *url);
A setter for the URL that should be opened by signon UI.
|
a GSignondDictionary structure |
|
the url to open |
void gsignond_signonui_data_set_password (GSignondSignonuiData *data,const gchar *password);
A setter for the password string.
|
a GSignondDictionary structure |
|
the password string |
void gsignond_signonui_data_set_query_error (GSignondSignonuiData *data,GSignondSignonuiError error);
A setter for the UI interaction error. Signon UI sets this to SIGNONUI_ERROR_NONE if
there were no errors.
|
a GSignondDictionary structure |
|
the error |
void gsignond_signonui_data_set_query_password (GSignondSignonuiData *data,gboolean query);
A setter for the query password property. It indicates whether the signon UI should ask the user for a password (and return it in the password property).
|
a GSignondDictionary structure |
|
the property value |
void gsignond_signonui_data_set_query_username (GSignondSignonuiData *data,gboolean query);
A setter for the query username property. It indicates whether the signon UI should ask the user for a username (and return it in the username property).
|
a GSignondDictionary structure |
|
the property value |
void gsignond_signonui_data_set_remember_password (GSignondSignonuiData *data,gboolean remember);
A setter for whether the password should be remembered.
|
a GSignondDictionary structure |
|
the property value |
void gsignond_signonui_data_set_request_id (GSignondSignonuiData *data,const gchar *id);
A setter for the dialog request id. The id identifies the dialog so that it can be refreshed or updated.
|
a GSignondDictionary structure |
|
request id |
void gsignond_signonui_data_set_test_reply (GSignondSignonuiData *data,const gchar *reply);
A setter for the test reply values. It's used only by the signon ui implementations to test themselves.
|
a GSignondDictionary structure |
|
test reply values |
void gsignond_signonui_data_set_title (GSignondSignonuiData *data,const gchar *title);
A setter for the UI dialog title.
|
a GSignondDictionary structure |
|
the title |
void gsignond_signonui_data_set_url_response (GSignondSignonuiData *data,const gchar *response);
A getter for the response URL. If the final URL was set in the request to the signon UI, and the signon UI detects that it has been reached, then the full final URL is returned using this property. This is used by redirection-based authentication such as OAauth.
|
a GSignondDictionary structure |
|
the response URL |
void gsignond_signonui_data_set_username (GSignondSignonuiData *data,const gchar *username);
A setter for the username string.
|
a GSignondDictionary structure |
|
the username string |