Top | ![]() |
![]() |
![]() |
![]() |
Functions
|
ags_authentication_get_authentication_module () |
|
ags_authentication_login () |
|
ags_authentication_logout () |
|
ags_authentication_generate_token () |
|
ags_authentication_get_digest () |
|
ags_authentication_is_session_active () |
#define | AGS_AUTHENTICATION() |
#define | AGS_AUTHENTICATION_GET_INTERFACE() |
#define | AGS_AUTHENTICATION_INTERFACE() |
#define | AGS_IS_AUTHENTICATION() |
#define | AGS_IS_AUTHENTICATION_INTERFACE() |
|
ags_authentication_get_type () |
Types and Values
#define | AGS_TYPE_AUTHENTICATION |
AgsAuthentication | |
struct | AgsAuthenticationInterface |
Functions
ags_authentication_get_authentication_module ()
gchar ** ags_authentication_get_authentication_module (AgsAuthentication *authentication
);
Available authentication modules.
Returns
a NULL
[element-type utf8][array zero-terminated=1][transfer full]
Since:
ags_authentication_login ()
gboolean ags_authentication_login (AgsAuthentication *authentication
,,
gchar *login,
gchar *password,
gchar **user_uuid,
gchar **security_token);
GError **error
Login.
Parameters
authentication |
||
login |
the login |
|
password |
the password |
|
user_uuid |
return location of the user's uuid. |
[out][transfer full] |
security_token |
return location of the security token. |
[out][transfer full] |
error |
the |
Since:
ags_authentication_logout ()
gboolean ags_authentication_logout (AgsAuthentication *authentication
,,
GObject *security_context,
gchar *login,
gchar *security_token);
GError **error
Logout.
Parameters
authentication |
||
security_context |
||
login |
the login |
|
security_token |
the security token |
|
error |
the |
Since:
ags_authentication_generate_token ()
gchar * ags_authentication_generate_token (AgsAuthentication *authentication
,);
GError **error
Generate token.
Since:
ags_authentication_get_digest ()
gchar * ags_authentication_get_digest (AgsAuthentication *authentication
,,
gchar *realm,
gchar *login,
gchar *security_token);
GError **error
Get digest of login
.
Parameters
authentication |
||
realm |
the realm |
|
login |
the login |
|
security_token |
the security token |
|
error |
the |
Since:
ags_authentication_is_session_active ()
gboolean ags_authentication_is_session_active (AgsAuthentication *authentication
,,
GObject *security_context,
gchar *user_uuid,
gchar *security_token);
GError **error
Check session.
Parameters
authentication |
||
security_context |
||
user_uuid |
the user's UUID |
|
security_token |
the security token |
|
error |
the |
Since:
AGS_AUTHENTICATION()
#define AGS_AUTHENTICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_AUTHENTICATION, AgsAuthentication))
AGS_AUTHENTICATION_GET_INTERFACE()
#define AGS_AUTHENTICATION_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_AUTHENTICATION, AgsAuthenticationInterface))
AGS_AUTHENTICATION_INTERFACE()
#define AGS_AUTHENTICATION_INTERFACE(vtable) (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_AUTHENTICATION, AgsAuthenticationInterface))
AGS_IS_AUTHENTICATION()
#define AGS_IS_AUTHENTICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_AUTHENTICATION))
AGS_IS_AUTHENTICATION_INTERFACE()
#define AGS_IS_AUTHENTICATION_INTERFACE(vtable) (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_AUTHENTICATION))
Types and Values
struct AgsAuthenticationInterface
struct AgsAuthenticationInterface { GTypeInterface ginterface; gchar** (*get_authentication_module)(AgsAuthentication *authentication); gboolean (*login)(AgsAuthentication *authentication, gchar *login, gchar *password, gchar **user_uuid, gchar **security_token, GError **error); gboolean (*logout)(AgsAuthentication *authentication, GObject *security_context, gchar *login, gchar *security_token, GError **error); gchar* (*generate_token)(AgsAuthentication *authentication, GError **error); gchar* (*get_digest)(AgsAuthentication *authentication, gchar *realm, gchar *login, gchar *security_token, GError **error); gboolean (*is_session_active)(AgsAuthentication *authentication, GObject *security_context, gchar *user_uuid, gchar *security_token, GError **error); };