AgsAuthenticationManager

AgsAuthenticationManager — Singleton pattern to organize authentication

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── AgsAuthenticationManager

Includes

#include <ags/server/security/ags_authentication_manager.h>

Description

The AgsAuthenticationManager manages your authentication.

Functions

ags_authentication_manager_get_authentication ()

GList *
ags_authentication_manager_get_authentication
                               (AgsAuthenticationManager *authentication_manager);

ags_authentication_manager_add_authentication ()

void
ags_authentication_manager_add_authentication
                               (AgsAuthenticationManager *authentication_manager,
                                GObject *authentication);

ags_authentication_manager_remove_authentication ()

void
ags_authentication_manager_remove_authentication
                               (AgsAuthenticationManager *authentication_manager,
                                GObject *authentication);

ags_authentication_manager_login ()

gboolean
ags_authentication_manager_login (AgsAuthenticationManager *authentication_manager,
                                  gchar *authentication_module,
                                  gchar *login,
                                  gchar *password,
                                  gchar **user_uuid,
                                  gchar **security_token);

ags_authentication_manager_is_session_active ()

gboolean
ags_authentication_manager_is_session_active
                               (AgsAuthenticationManager *authentication_manager,
                                GObject *security_context,
                                gchar *login,
                                gchar *security_token);

ags_authentication_manager_get_instance ()

AgsAuthenticationManager *
ags_authentication_manager_get_instance
                               ();

Get instance.

Since: 1.0.0


ags_authentication_manager_new ()

AgsAuthenticationManager *
ags_authentication_manager_new ();

Creates an AgsAuthenticationManager

Returns

a new AgsAuthenticationManager

Since: 1.0.0


AGS_AUTHENTICATION_MANAGER()

#define AGS_AUTHENTICATION_MANAGER(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_AUTHENTICATION_MANAGER, AgsAuthenticationManager))

AGS_AUTHENTICATION_MANAGER_CLASS()

#define AGS_AUTHENTICATION_MANAGER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_AUTHENTICATION_MANAGER, AgsAuthenticationManagerClass))

AGS_AUTHENTICATION_MANAGER_GET_CLASS()

#define AGS_AUTHENTICATION_MANAGER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_AUTHENTICATION_MANAGER, AgsAuthenticationManagerClass))

AGS_IS_AUTHENTICATION_MANAGER()

#define AGS_IS_AUTHENTICATION_MANAGER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_AUTHENTICATION_MANAGER))

ags_authentication_manager_get_type ()

GType
ags_authentication_manager_get_type (void);

Types and Values

AGS_TYPE_AUTHENTICATION_MANAGER

#define AGS_TYPE_AUTHENTICATION_MANAGER                (ags_authentication_manager_get_type())

struct AgsAuthenticationManager

struct AgsAuthenticationManager;

struct AgsAuthenticationManagerClass

struct AgsAuthenticationManagerClass {
  GObjectClass object;
};