docs: added documentation for GSignondSignonuiData
authorAlexander Kanavin <alexander.kanavin@intel.com>
Tue, 2 Jul 2013 15:37:32 +0000 (18:37 +0300)
committerAlexander Kanavin <alexander.kanavin@intel.com>
Fri, 16 Aug 2013 14:37:10 +0000 (17:37 +0300)
include/gsignond/gsignond-signonui-data.h
src/common/gsignond-session-data.c
src/common/gsignond-signonui-data.c

index ed56f44..5846914 100644 (file)
@@ -40,21 +40,6 @@ G_BEGIN_DECLS
 
 typedef GSignondDictionary GSignondSignonuiData;
 
-/**
- * @GSignondSignonuiError:
- * @SIGNONUI_ERROR_NONE: No errors
- * @SIGNONUI_ERROR_GENERAL: Generic error during interaction
- * @SIGNONUI_ERROR_NO_SIGNONUI: Cannot send request to signon-ui
- * @SIGNONUI_ERROR_BAD_PARAMETERS:Signon-Ui cannot create dialog based on the given UiSessionData
- * @SIGNONUI_ERROR_CANCELED: User canceled action. Plugin should not retry automatically after this
- * @SIGNONUI_ERROR_NOT_AVAILABLE: Requested ui is not available. For example browser cannot be started
- * @SIGNONUI_ERROR_BAD_URL: Given url was not valid
- * @SIGNONUI_ERROR_BAD_CAPTCHA: Given captcha image was not valid
- * @SIGNONUI_ERROR_BAD_CAPTCHA_URL: Given url for capctha loading was not valid
- * @SIGNONUI_ERROR_REFRESH_FAILED: Refresh failed
- * @SIGNONUI_ERROR_FORBIDDEN: Showing ui forbidden by ui policy
- * @SIGNONUI_ERROR_FORGOT_PASSWORD: User pressed forgot password
- */
 typedef enum {
     SIGNONUI_ERROR_NONE = 0, 
     SIGNONUI_ERROR_GENERAL,
@@ -96,12 +81,11 @@ gsignond_signonui_data_get_final_url (GSignondSignonuiData *data);
 void
 gsignond_signonui_data_set_final_url (GSignondSignonuiData *data,
                      const gchar *url);
-gboolean
-gsignond_signonui_data_get_forgot_password (GSignondSignonuiData *data,
-                                            gboolean *forgot_password);
+const gchar*
+gsignond_signonui_data_get_forgot_password (GSignondSignonuiData *data);
 void
 gsignond_signonui_data_set_forgot_password (GSignondSignonuiData *data,
-                                            gboolean forgot);
+                                            const gchar *forgot);
 const gchar*
 gsignond_signonui_data_get_forgot_password_url (GSignondSignonuiData *data);
 void
@@ -142,7 +126,7 @@ gsignond_signonui_data_set_query_username (GSignondSignonuiData *data,
                                            gboolean query);
 gboolean
 gsignond_signonui_data_get_remember_password (GSignondSignonuiData *data,
-                                              gboolean *query_password);
+                                              gboolean *remember_password);
 void
 gsignond_signonui_data_set_remember_password (GSignondSignonuiData *data,
                              gboolean remember);
index 5019ede..bbd6744 100644 (file)
@@ -186,7 +186,7 @@ gsignond_session_data_set_caption (GSignondSessionData *data,
  * This property tells the plugin to discard any cached tokens and start 
  * the authoriztion process anew.
  * 
- * Returns: whether the key-value pair exists in the dictionary or not.
+ * Returns: whether the key-value pair exists in the @data dictionary or not.
  */
 gboolean
 gsignond_session_data_get_renew_token (GSignondSessionData *data,
@@ -219,7 +219,7 @@ gsignond_session_data_set_renew_token (GSignondSessionData *data,
  * A getter for UI policy setting associated with the authentication session.
  * The UI policy indicates how the authentication plugin should interact with the user.
  * 
- * Returns: whether the key-value pair exists in the dictionary or not.
+ * Returns: whether the key-value pair exists in the @data dictionary or not.
  */
 gboolean
 gsignond_session_data_get_ui_policy (GSignondSessionData *data,
@@ -281,7 +281,7 @@ gsignond_session_data_set_network_proxy (GSignondSessionData *data,
  * A getter for a network timeout setting associated with the authentication session.
  * This can be used to change the default timeout in case of unresponsive servers.
  * 
- * Returns: whether the key-value pair exists in the dictionary or not.
+ * Returns: whether the key-value pair exists in the @data dictionary or not.
  */
 gboolean
 gsignond_session_data_get_network_timeout (GSignondSessionData *data,
@@ -316,7 +316,7 @@ gsignond_session_data_set_network_timeout (GSignondSessionData *data,
  * This can be used to embed the user interaction window produced by the authentication
  * session into an application window.
  * 
- * Returns: whether the key-value pair exists in the dictionary or not.
+ * Returns: whether the key-value pair exists in the @data dictionary or not.
  */
 gboolean
 gsignond_session_data_get_window_id (GSignondSessionData *data,
index c489b9b..f56566e 100644 (file)
 
 #include <gsignond/gsignond-signonui-data.h>
 
+/**
+ * SECTION:gsignond-signonui-data
+ * @short_description: definitions for user interaction parameters
+ * @title: GSignondSignonuiData
+ * @include: gsignond/gsignond-signonui-data.h
+ *
+ * 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.
+ */
+
+/**
+ * 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().
+ */
+
+/**
+ * GSignondSignonuiError:
+ * @SIGNONUI_ERROR_NONE: No errors
+ * @SIGNONUI_ERROR_GENERAL: Generic error during interaction
+ * @SIGNONUI_ERROR_NO_SIGNONUI: Cannot send request to signon-ui
+ * @SIGNONUI_ERROR_BAD_PARAMETERS: Signon-Ui cannot create dialog based on the given UiSessionData
+ * @SIGNONUI_ERROR_CANCELED: User canceled action. Plugin should not retry automatically after this
+ * @SIGNONUI_ERROR_NOT_AVAILABLE: Requested ui is not available. For example browser cannot be started
+ * @SIGNONUI_ERROR_BAD_URL: Given url was not valid
+ * @SIGNONUI_ERROR_BAD_CAPTCHA: Given captcha image was not valid
+ * @SIGNONUI_ERROR_BAD_CAPTCHA_URL: Given url for capctha loading was not valid
+ * @SIGNONUI_ERROR_REFRESH_FAILED: Refresh failed
+ * @SIGNONUI_ERROR_FORBIDDEN: Showing ui forbidden by ui policy
+ * @SIGNONUI_ERROR_FORGOT_PASSWORD: User pressed forgot password
+ * 
+ * This enum defines errors that may happen during user interaction.
+ */
+
+
 #define SIGNONUI_KEY_CAPTCHA_RESPONSE "CaptchaResponse"
 #define SIGNONUI_KEY_CAPTCHA_URL "CaptchaUrl"
 #define SIGNONUI_KEY_CAPTION "Caption"
 #define SIGNONUI_KEY_URL_RESPONSE "UrlResponse"
 #define SIGNONUI_KEY_USERNAME "UserName"
 
+/**
+ * gsignond_signonui_data_get_captcha_response:
+ * @data: a #GSignondDictionary structure
+ * 
+ * A getter for the user's response to a captcha query.
+ * 
+ * Returns: (transfer none) the string entered by the user in response to a captcha query.
+ */
 const gchar*
 gsignond_signonui_data_get_captcha_response (GSignondSignonuiData *data) 
 {
     return gsignond_dictionary_get_string (data, SIGNONUI_KEY_CAPTCHA_RESPONSE);
 }
 
+/**
+ * gsignond_signonui_data_set_captcha_response:
+ * @data: a #GSignondDictionary structure
+ * @response: the string entered by the user in response to a captcha query.
+ * 
+ * A setter for the user's response to a captcha query.
+ */
 void
 gsignond_signonui_data_set_captcha_response (GSignondSignonuiData *data,
                                              const gchar *response)
@@ -58,12 +126,27 @@ gsignond_signonui_data_set_captcha_response (GSignondSignonuiData *data,
     gsignond_dictionary_set_string (data, SIGNONUI_KEY_CAPTCHA_RESPONSE, response);
 }
 
+/**
+ * gsignond_signonui_data_get_captcha_url:
+ * @data: a #GSignondDictionary structure
+ * 
+ * A getter for the captcha URL.
+ * 
+ * Returns: (transfer none) the URL to the captcha image to be verified by user.
+ */
 const gchar*
 gsignond_signonui_data_get_captcha_url (GSignondSignonuiData *data)
 {
     return gsignond_dictionary_get_string (data, SIGNONUI_KEY_CAPTCHA_URL);
 }
 
+/**
+ * gsignond_signonui_data_set_captcha_url:
+ * @data: a #GSignondDictionary structure
+ * @url: the URL to the captcha image to be verified by user
+ * 
+ * A setter for the captcha URL.
+ */
 void
 gsignond_signonui_data_set_captcha_url (GSignondSignonuiData *data,
                                         const gchar *url)
@@ -71,12 +154,30 @@ gsignond_signonui_data_set_captcha_url (GSignondSignonuiData *data,
     gsignond_dictionary_set_string (data, SIGNONUI_KEY_CAPTCHA_URL, url);
 }
 
+/**
+ * gsignond_signonui_data_get_caption:
+ * @data: a #GSignondDictionary structure
+ * 
+ * A getter for the caption string. Caption tells the user which 
+ * application/credentials/provider is requestion authentication.
+ * 
+ * Returns: (transfer none)
+ */
 const gchar*
 gsignond_signonui_data_get_caption (GSignondSignonuiData *data)
 {
     return gsignond_dictionary_get_string (data, SIGNONUI_KEY_CAPTION);
 }
 
+/**
+ * gsignond_signonui_data_set_caption:
+ * @data: a #GSignondDictionary structure
+ * @caption: the caption string
+ * 
+ * A setter for the caption string. Caption tells the user which 
+ * application/credentials/provider is requestion authentication.
+ * 
+ */
 void
 gsignond_signonui_data_set_caption (GSignondSignonuiData *data,
                                     const gchar *caption)
@@ -84,6 +185,17 @@ gsignond_signonui_data_set_caption (GSignondSignonuiData *data,
     gsignond_dictionary_set_string (data, SIGNONUI_KEY_CAPTION, caption);
 }
 
+/**
+ * gsignond_signonui_data_get_confirm:
+ * @data: a #GSignondDictionary structure
+ * @confirm: the value for the property is written here
+ * 
+ * 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).
+ * 
+ * Returns: whether this property exists in the @data dictionary or not.
+ */
 gboolean
 gsignond_signonui_data_get_confirm (GSignondSignonuiData *data,
                                     gboolean *confirm)
@@ -91,6 +203,16 @@ gsignond_signonui_data_get_confirm (GSignondSignonuiData *data,
     return gsignond_dictionary_get_boolean (data, SIGNONUI_KEY_CONFIRM, confirm);
 }
 
+/**
+ * gsignond_signonui_data_set_confirm:
+ * @data: a #GSignondDictionary structure
+ * @confirm: the value for the property
+ * 
+ * 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).
+ * 
+ */
 void
 gsignond_signonui_data_set_confirm (GSignondSignonuiData *data,
                                     gboolean confirm)
@@ -98,12 +220,34 @@ gsignond_signonui_data_set_confirm (GSignondSignonuiData *data,
     gsignond_dictionary_set_boolean (data, SIGNONUI_KEY_CONFIRM, confirm);
 }
 
+/**
+ * gsignond_signonui_data_get_final_url:
+ * @data: a #GSignondDictionary structure
+ * 
+ * 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.
+ * 
+ * Returns: (transfer none)
+ */
 const gchar*
 gsignond_signonui_data_get_final_url (GSignondSignonuiData *data)
 {
     return gsignond_dictionary_get_string (data, SIGNONUI_KEY_FINAL_URL);
 }
 
+/**
+ * gsignond_signonui_data_set_final_url:
+ * @data: a #GSignondDictionary structure
+ * @url: the final 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.
+ * 
+ */
 void
 gsignond_signonui_data_set_final_url (GSignondSignonuiData *data,
                                       const gchar *url)
@@ -111,28 +255,64 @@ gsignond_signonui_data_set_final_url (GSignondSignonuiData *data,
     gsignond_dictionary_set_string (data, SIGNONUI_KEY_FINAL_URL, url);
 }
 
-gboolean
-gsignond_signonui_data_get_forgot_password (GSignondSignonuiData *data,
-                                            gboolean *forgot_password)
+/**
+ * gsignond_signonui_data_get_forgot_password:
+ * @data: a #GSignondDictionary structure
+ * 
+ * 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.
+ * 
+ * Returns: (transfer none)
+ */
+const gchar*
+gsignond_signonui_data_get_forgot_password (GSignondSignonuiData *data)
 {
-    return gsignond_dictionary_get_boolean (data, 
-                                            SIGNONUI_KEY_FORGOT_PASSWORD,
-                                            forgot_password);
+    return gsignond_dictionary_get_string (data, 
+                                            SIGNONUI_KEY_FORGOT_PASSWORD);
 }
 
+/**
+ * gsignond_signonui_data_set_forgot_password:
+ * @data: a #GSignondDictionary structure
+ * @forgot: the forgot password string
+ * 
+ * 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.
+ * 
+ * Returns: (transfer none) 
+ */
 void
 gsignond_signonui_data_set_forgot_password (GSignondSignonuiData *data,
-                                            gboolean forgot)
+                                            const gchar* forgot)
 {
-    gsignond_dictionary_set_boolean (data, SIGNONUI_KEY_FORGOT_PASSWORD, forgot);
+    gsignond_dictionary_set_string (data, SIGNONUI_KEY_FORGOT_PASSWORD, forgot);
 }
 
+/**
+ * gsignond_signonui_data_get_forgot_password_url:
+ * @data: a #GSignondDictionary structure
+ * 
+ * A getter for the forgot password URL, where the user can reset or request a 
+ * reminder of the password.
+ * 
+ * Returns: (transfer none)
+ */
 const gchar*
 gsignond_signonui_data_get_forgot_password_url (GSignondSignonuiData *data)
 {
     return gsignond_dictionary_get_string (data, SIGNONUI_KEY_FORGOT_PASSWORD_URL);
 }
 
+/**
+ * gsignond_signonui_data_set_forgot_password_url:
+ * @data: a #GSignondDictionary structure
+ * @url: the forgot password URL
+ * 
+ * A setter for the forgot password URL, where the user can reset or request a 
+ * reminder of the password.
+ * 
+ * Returns: (transfer none)
+ */
 void
 gsignond_signonui_data_set_forgot_password_url (GSignondSignonuiData *data,
                                                 const gchar *url)
@@ -140,12 +320,28 @@ gsignond_signonui_data_set_forgot_password_url (GSignondSignonuiData *data,
     gsignond_dictionary_set_string (data, SIGNONUI_KEY_FORGOT_PASSWORD_URL, url);
 }
 
+/**
+ * gsignond_signonui_data_get_message:
+ * @data: a #GSignondDictionary structure
+ * 
+ * A getter for the message which is show to the user in the signon UI dialog.
+ * 
+ * Returns: (transfer none)
+ */
 const gchar*
 gsignond_signonui_data_get_message (GSignondSignonuiData *data)
 {
     return gsignond_dictionary_get_string (data, SIGNONUI_KEY_MESSAGE);
 }
 
+/**
+ * gsignond_signonui_data_set_message:
+ * @data: a #GSignondDictionary structure
+ * @message: the message
+ * 
+ * A setter for the message which is show to the user in the signon UI dialog.
+ * 
+ */
 void
 gsignond_signonui_data_set_message (GSignondSignonuiData *data,
                                     const gchar *message)
@@ -153,12 +349,28 @@ gsignond_signonui_data_set_message (GSignondSignonuiData *data,
     gsignond_dictionary_set_string (data, SIGNONUI_KEY_MESSAGE, message);
 }
 
+/**
+ * gsignond_signonui_data_get_open_url:
+ * @data: a #GSignondDictionary structure
+ * 
+ * A getter for the URL that should be opened by signon UI.
+ * 
+ * Returns: (transfer none)
+ */
 const gchar*
 gsignond_signonui_data_get_open_url (GSignondSignonuiData *data)
 {
     return gsignond_dictionary_get_string (data, SIGNONUI_KEY_OPEN_URL);
 }
 
+/**
+ * gsignond_signonui_data_set_open_url:
+ * @data: a #GSignondDictionary structure
+ * @url: the url to open
+ * 
+ * A setter for the URL that should be opened by signon UI.
+ * 
+ */
 void
 gsignond_signonui_data_set_open_url (GSignondSignonuiData *data,
                                      const gchar *url)
@@ -166,12 +378,28 @@ gsignond_signonui_data_set_open_url (GSignondSignonuiData *data,
     gsignond_dictionary_set_string (data, SIGNONUI_KEY_OPEN_URL, url);
 }
 
+/**
+ * gsignond_signonui_data_get_password:
+ * @data: a #GSignondDictionary structure
+ * 
+ * A getter for the password string.
+ * 
+ * Returns: (transfer none)
+ */
 const gchar*
 gsignond_signonui_data_get_password (GSignondSignonuiData *data)
 {
     return gsignond_dictionary_get_string (data, SIGNONUI_KEY_PASSWORD);
 }
 
+/**
+ * gsignond_signonui_data_set_password:
+ * @data: a #GSignondDictionary structure
+ * @password: the password string
+ * 
+ * A setter for the password string.
+ * 
+ */
 void
 gsignond_signonui_data_set_password (GSignondSignonuiData *data,
                                      const gchar *password)
@@ -179,6 +407,16 @@ gsignond_signonui_data_set_password (GSignondSignonuiData *data,
     gsignond_dictionary_set_string (data, SIGNONUI_KEY_PASSWORD, password);
 }
 
+/**
+ * gsignond_signonui_data_get_query_error:
+ * @data: a #GSignondDictionary structure
+ * @error: the error is written here
+ * 
+ * A getter for the UI interaction error. Signon UI sets this to @SIGNONUI_ERROR_NONE if
+ * there were no errors.
+ * 
+ * Returns: whether this property exists in the @data dictionary or not.
+ */
 gboolean
 gsignond_signonui_data_get_query_error (GSignondSignonuiData *data,
                                         GSignondSignonuiError *error)
@@ -188,6 +426,15 @@ gsignond_signonui_data_get_query_error (GSignondSignonuiData *data,
                                           error);
 }
 
+/**
+ * gsignond_signonui_data_set_query_error:
+ * @data: a #GSignondDictionary structure
+ * @error: the error
+ * 
+ * A setter for the UI interaction error. Signon UI sets this to @SIGNONUI_ERROR_NONE if
+ * there were no errors.
+ * 
+ */
 void
 gsignond_signonui_data_set_query_error (GSignondSignonuiData *data,
                                         GSignondSignonuiError error)
@@ -195,6 +442,16 @@ gsignond_signonui_data_set_query_error (GSignondSignonuiData *data,
     gsignond_dictionary_set_uint32 (data, SIGNONUI_KEY_QUERY_ERROR_CODE, error);
 }
 
+/**
+ * gsignond_signonui_data_get_query_password:
+ * @data: a #GSignondDictionary structure
+ * @query_password: the property is written here
+ * 
+ * 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).
+ * 
+ * Returns: whether this property exists in the @data dictionary or not.
+ */
 gboolean
 gsignond_signonui_data_get_query_password (GSignondSignonuiData *data,
                                             gboolean *query_password)
@@ -204,6 +461,15 @@ gsignond_signonui_data_get_query_password (GSignondSignonuiData *data,
                                             query_password);
 }
 
+/**
+ * gsignond_signonui_data_set_query_password:
+ * @data: a #GSignondDictionary structure
+ * @query: the property value
+ * 
+ * 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).
+ * 
+ */
 void
 gsignond_signonui_data_set_query_password (GSignondSignonuiData *data,
                                            gboolean query)
@@ -211,6 +477,16 @@ gsignond_signonui_data_set_query_password (GSignondSignonuiData *data,
     gsignond_dictionary_set_boolean (data, SIGNONUI_KEY_QUERY_PASSWORD, query);
 }
 
+/**
+ * gsignond_signonui_data_get_query_username:
+ * @data: a #GSignondDictionary structure
+ * @query_username: the property is written here
+ * 
+ * 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).
+ * 
+ * Returns: whether this property exists in the @data dictionary or not.
+ */
 gboolean
 gsignond_signonui_data_get_query_username (GSignondSignonuiData *data,
                                             gboolean *query_username)
@@ -220,6 +496,15 @@ gsignond_signonui_data_get_query_username (GSignondSignonuiData *data,
                                             query_username);
 }
 
+/**
+ * gsignond_signonui_data_set_query_username:
+ * @data: a #GSignondDictionary structure
+ * @query: the property value
+ * 
+ * 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).
+ * 
+ */
 void
 gsignond_signonui_data_set_query_username (GSignondSignonuiData *data,
                                            gboolean query)
@@ -227,6 +512,15 @@ gsignond_signonui_data_set_query_username (GSignondSignonuiData *data,
     gsignond_dictionary_set_boolean (data, SIGNONUI_KEY_QUERY_USERNAME, query);
 }
 
+/**
+ * gsignond_signonui_data_get_remember_password:
+ * @data: a #GSignondDictionary structure
+ * @remember_password: the property is written here
+ * 
+ * A getter for whether the password should be remembered.
+ * 
+ * Returns: whether this property exists in the @data dictionary or not.
+ */
 gboolean
 gsignond_signonui_data_get_remember_password (GSignondSignonuiData *data,
                                             gboolean *remember_password)
@@ -236,6 +530,14 @@ gsignond_signonui_data_get_remember_password (GSignondSignonuiData *data,
                                             remember_password);
 }
 
+/**
+ * gsignond_signonui_data_set_remember_password:
+ * @data: a #GSignondDictionary structure
+ * @remember: the property value
+ * 
+ * A setter for whether the password should be remembered.
+ * 
+ */
 void
 gsignond_signonui_data_set_remember_password (GSignondSignonuiData *data,
                                               gboolean remember)
@@ -243,12 +545,30 @@ gsignond_signonui_data_set_remember_password (GSignondSignonuiData *data,
     gsignond_dictionary_set_boolean (data, SIGNONUI_KEY_REMEMBER_PASSWORD, remember);
 }
 
+/**
+ * gsignond_signonui_data_get_request_id:
+ * @data: a #GSignondDictionary structure
+ * 
+ * A getter for the dialog request id. The id identifies the dialog so that it
+ * can be refreshed or updated.
+ * 
+ * Returns: (transfer none)
+ */
 const gchar*
 gsignond_signonui_data_get_request_id (GSignondSignonuiData *data)
 {
     return gsignond_dictionary_get_string (data, SIGNONUI_KEY_REQUEST_ID);
 }
 
+/**
+ * gsignond_signonui_data_set_request_id:
+ * @data: a #GSignondDictionary structure
+ * @id: request id
+ * 
+ * A setter for the dialog request id. The id identifies the dialog so that it
+ * can be refreshed or updated.
+ * 
+ */
 void
 gsignond_signonui_data_set_request_id (GSignondSignonuiData *data,
                                        const gchar *id)
@@ -256,12 +576,30 @@ gsignond_signonui_data_set_request_id (GSignondSignonuiData *data,
     gsignond_dictionary_set_string (data, SIGNONUI_KEY_REQUEST_ID, id);
 }
 
+/**
+ * gsignond_signonui_data_get_test_reply:
+ * @data: a #GSignondDictionary structure
+ * 
+ * A getter for the test reply values. It's used only by the signon ui 
+ * implementations to test themselves.
+ * 
+ * Returns: (transfer none)
+ */
 const gchar*
 gsignond_signonui_data_get_test_reply (GSignondSignonuiData *data)
 {
     return gsignond_dictionary_get_string (data, SIGNONUI_KEY_TEST_REPLY_VALUES);
 }
 
+/**
+ * gsignond_signonui_data_set_test_reply:
+ * @data: a #GSignondDictionary structure
+ * @reply: test reply values
+ * 
+ * A setter for the test reply values. It's used only by the signon ui 
+ * implementations to test themselves.
+ * 
+ */
 void
 gsignond_signonui_data_set_test_reply (GSignondSignonuiData *data,
                                        const gchar *reply)
@@ -269,12 +607,28 @@ gsignond_signonui_data_set_test_reply (GSignondSignonuiData *data,
     gsignond_dictionary_set_string (data, SIGNONUI_KEY_TEST_REPLY_VALUES, reply);
 }
 
+/**
+ * gsignond_signonui_data_get_title:
+ * @data: a #GSignondDictionary structure
+ * 
+ * A getter for the UI dialog title.
+ * 
+ * Returns: (transfer none)
+ */
 const gchar*
 gsignond_signonui_data_get_title (GSignondSignonuiData *data)
 {
     return gsignond_dictionary_get_string (data, SIGNONUI_KEY_TITLE);
 }
 
+/**
+ * gsignond_signonui_data_set_title:
+ * @data: a #GSignondDictionary structure
+ * @title: the title
+ * 
+ * A setter for the UI dialog title.
+ * 
+ */
 void
 gsignond_signonui_data_set_title (GSignondSignonuiData *data,
                                   const gchar* title)
@@ -282,12 +636,34 @@ gsignond_signonui_data_set_title (GSignondSignonuiData *data,
     gsignond_dictionary_set_string (data, SIGNONUI_KEY_TITLE, title);
 }
 
+/**
+ * gsignond_signonui_data_get_url_response:
+ * @data: a #GSignondDictionary structure
+ * 
+ * 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.
+ * 
+ * Returns: (transfer none)
+ */
 const gchar*
 gsignond_signonui_data_get_url_response (GSignondSignonuiData *data)
 {
     return gsignond_dictionary_get_string (data, SIGNONUI_KEY_URL_RESPONSE);
 }
 
+/**
+ * gsignond_signonui_data_set_url_response:
+ * @data: a #GSignondDictionary structure
+ * @response: the response URL
+ * 
+ * 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.
+ * 
+ * Returns: (transfer none)
+ */
 void
 gsignond_signonui_data_set_url_response (GSignondSignonuiData *data,
                                          const gchar *response)
@@ -295,12 +671,28 @@ gsignond_signonui_data_set_url_response (GSignondSignonuiData *data,
     gsignond_dictionary_set_string (data, SIGNONUI_KEY_URL_RESPONSE, response);
 }
 
+/**
+ * gsignond_signonui_data_get_username:
+ * @data: a #GSignondDictionary structure
+ * 
+ * A getter for the username string.
+ * 
+ * Returns: (transfer none)
+ */
 const gchar*
 gsignond_signonui_data_get_username (GSignondSignonuiData *data)
 {
     return gsignond_dictionary_get_string (data, SIGNONUI_KEY_USERNAME);
 }
 
+/**
+ * gsignond_signonui_data_set_username:
+ * @data: a #GSignondDictionary structure
+ * @username: the username string
+ * 
+ * A setter for the username string.
+ * 
+ */
 void
 gsignond_signonui_data_set_username (GSignondSignonuiData *data,
                                      const gchar *username)