Top | ![]() |
![]() |
![]() |
![]() |
#define | AGS_TYPE_AUTHENTICATION |
AgsAuthentication | |
struct | AgsAuthenticationInterface |
gchar **
ags_authentication_get_authentication_module
(AgsAuthentication *authentication
);
Available authentication modules.
Since: 2.0.0
gboolean ags_authentication_login (AgsAuthentication *authentication
,gchar *login
,gchar *password
,gchar **user_uuid
,gchar **security_token
,GError **error
);
Login.
authentication |
||
login |
the login |
|
password |
the password |
|
user_uuid |
return location of the user's uuid |
|
security_token |
return location of the security token |
|
error |
the GError |
Since: 2.0.0
gboolean ags_authentication_logout (AgsAuthentication *authentication
,GObject *security_context
,gchar *login
,gchar *security_token
,GError **error
);
Logout.
authentication |
||
security_context |
||
login |
the login |
|
security_token |
the security token |
|
error |
the GError |
Since: 2.0.0
gchar * ags_authentication_generate_token (AgsAuthentication *authentication
,GError **error
);
Generate token.
Since: 2.0.0
gchar ** ags_authentication_get_groups (AgsAuthentication *authentication
,GObject *security_context
,gchar *login
,gchar *security_token
,GError **error
);
Get groups.
authentication |
||
security_context |
||
login |
the login |
|
security_token |
the security token |
|
error |
the GError |
Since: 2.0.0
gchar * ags_authentication_get_permission (AgsAuthentication *authentication
,GObject *security_context
,gchar *login
,gchar *security_token
,gchar *group_name
,GError **error
);
Get permission of group.
authentication |
||
security_context |
||
login |
the login |
|
security_token |
the security token |
|
group_name |
the group name to query |
|
error |
the GError |
Since: 2.0.0
gboolean ags_authentication_is_session_active (AgsAuthentication *authentication
,GObject *security_context
,gchar *login
,gchar *security_token
,GError **error
);
Check session.
authentication |
||
security_context |
||
login |
the login |
|
security_token |
the security token |
|
error |
the GError |
Since: 2.0.0
#define AGS_AUTHENTICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_AUTHENTICATION, AgsAuthentication))
#define AGS_AUTHENTICATION_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_AUTHENTICATION, AgsAuthenticationInterface))
#define AGS_AUTHENTICATION_INTERFACE(vtable) (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_AUTHENTICATION, AgsAuthenticationInterface))
#define AGS_IS_AUTHENTICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_AUTHENTICATION))
#define AGS_IS_AUTHENTICATION_INTERFACE(vtable) (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_AUTHENTICATION))
struct AgsAuthenticationInterface { GTypeInterface interface; 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_groups)(AgsAuthentication *authentication, GObject *security_context, gchar *login, gchar *security_token, GError **error); gchar* (*get_permission)(AgsAuthentication *authentication, GObject *security_context, gchar *login, gchar *security_token, gchar *group_name, GError **error); gboolean (*is_session_active)(AgsAuthentication *authentication, GObject *security_context, gchar *login, gchar *security_token, GError **error); };