SignonAuthService

SignonAuthService — The authorization service object

Synopsis

void                (*SignonQueryMechanismCb)           (SignonAuthService *auth_service,
                                                         const gchar *method,
                                                         gchar **mechanisms,
                                                         const GError *error,
                                                         gpointer user_data);
void                (*SignonQueryMethodsCb)             (SignonAuthService *auth_service,
                                                         gchar **methods,
                                                         const GError *error,
                                                         gpointer user_data);
SignonAuthService * signon_auth_service_new             ();
void                signon_auth_service_query_mechanisms
                                                        (SignonAuthService *auth_service,
                                                         const gchar *method,
                                                         SignonQueryMechanismCb cb,
                                                         gpointer user_data);
void                signon_auth_service_query_methods   (SignonAuthService *auth_service,
                                                         SignonQueryMethodsCb cb,
                                                         gpointer user_data);

Description

The SignonAuthService is the main object in this library.

Details

SignonQueryMechanismCb ()

void                (*SignonQueryMechanismCb)           (SignonAuthService *auth_service,
                                                         const gchar *method,
                                                         gchar **mechanisms,
                                                         const GError *error,
                                                         gpointer user_data);

Callback to be passed to signon_auth_service_query_mechanisms().

auth_service :

the SignonAuthService.

method :

the authentication method being inspected.

mechanisms :

list of available mechanisms. [transfer full][type GStrv]

error :

a GError if an error occurred, NULL otherwise.

user_data :

the user data that was passed when installing this callback.

SignonQueryMethodsCb ()

void                (*SignonQueryMethodsCb)             (SignonAuthService *auth_service,
                                                         gchar **methods,
                                                         const GError *error,
                                                         gpointer user_data);

Callback to be passed to signon_auth_service_query_methods().

auth_service :

the SignonAuthService.

methods :

list of available methods. [transfer full][type GStrv]

error :

a GError if an error occurred, NULL otherwise.

user_data :

the user data that was passed when installing this callback.

signon_auth_service_new ()

SignonAuthService * signon_auth_service_new             ();

Create a new SignonAuthService.

Returns :

an instance of an SignonAuthService.

signon_auth_service_query_mechanisms ()

void                signon_auth_service_query_mechanisms
                                                        (SignonAuthService *auth_service,
                                                         const gchar *method,
                                                         SignonQueryMechanismCb cb,
                                                         gpointer user_data);

Lists all the available mechanisms.

auth_service :

the SignonAuthService.

method :

the name of the method whose mechanisms must be retrieved.

cb :

callback to be invoked. [scope async]

user_data :

user data.

signon_auth_service_query_methods ()

void                signon_auth_service_query_methods   (SignonAuthService *auth_service,
                                                         SignonQueryMethodsCb cb,
                                                         gpointer user_data);

Lists all the available methods.

auth_service :

the SignonAuthService.

cb :

callback to be invoked. [scope async]

user_data :

user data.