Top | ![]() |
![]() |
![]() |
![]() |
GsAuth * | gs_auth_new () |
const gchar * | gs_auth_get_header () |
void | gs_auth_set_header () |
const gchar * | gs_auth_get_auth_id () |
const gchar * | gs_auth_get_provider_name () |
void | gs_auth_set_provider_name () |
const gchar * | gs_auth_get_provider_type () |
GoaObject * | gs_auth_peek_goa_object () |
void | gs_auth_set_goa_object () |
This object represents user data used for authentication. This data is shared between all plugins.
GsAuth * gs_auth_new (const gchar *auth_id
,const gchar *provider_type
,GError **error
);
auth_id |
an identifier used for mapping, e.g. "snapd" |
|
provider_type |
the name of the GoaProvider466 to be used, e.g. "ubuntusso" |
|
error |
A GError |
const gchar * gs_auth_get_header (GsAuth *auth
,guint n
);
Gets the header to be used in the authentication dialog in case there are n
available accounts.
void gs_auth_set_header (GsAuth *auth
,const gchar *header_none
,const gchar *header_single
,const gchar *header_multiple
);
Sets the headers to be used for the authentication dialog.
auth |
a GsAuth |
|
header_none |
the header to be used if no account is present |
|
header_single |
the header to be used if one account is present |
|
header_multiple |
the header to be used if two or more accounts are present |
const gchar *
gs_auth_get_auth_id (GsAuth *auth
);
Gets the authentication service ID.
const gchar *
gs_auth_get_provider_name (GsAuth *auth
);
Gets the authentication service name.
void gs_auth_set_provider_name (GsAuth *auth
,const gchar *provider_name
);
Sets the name to be used for the authentication dialog.
const gchar *
gs_auth_get_provider_type (GsAuth *auth
);
Gets the GoaProvider type to be used for the authentication dialog.
GoaObject *
gs_auth_peek_goa_object (GsAuth *auth
);
Gets the logged GoaObject if any.