Liberator Auth API
8.0.3.315031-546c6d47
|
Functions | |
int | auth_eject_all_sessions_by_app_id (const char *app_id) |
Eject all logged in sessions that are using the specified application id. More... | |
int | auth_eject_sessions (user_t *user, int num) |
Eject sessions. More... | |
int | auth_eject_sessions_by_app_id (user_t *user, int num, char *app_id) |
Eject sessions with matching application id. More... | |
int | auth_eject_sessions_by_machine_id (user_t *user, int num, char *machine_id) |
Eject sessions based on the username by machine id. More... | |
int | auth_eject_username_by_app_id (char *username, int num, char *app_id) |
Wrapper for auth_eject_username_by_app_id that takes the user name instead of a _user pointer. More... | |
int | auth_eject_username_by_machine_id (char *username, int num, char *machine_id) |
Wrapper for auth_eject_sessions_by_machine_id that takes the user name instead of a _user pointer. More... | |
int | auth_eject_username_sessions (char *username, int num) |
Wrapper for auth_eject_sessions that takes the user name instead of a _user pointer. More... | |
void | auth_invalidate_all_sessions (int flags) |
Invalidate all sessions for all users in the system. More... | |
void | auth_invalidate_object (char *name, int flags) |
Invalidate an object. More... | |
void | auth_invalidate_sessions (user_t *user, int num, int flags) |
Invalidate all sessions for a user. More... | |
void | auth_invalidate_sessions_by_name (char *name, int num, int flags) |
Invalidate all sessions for a username. More... | |
int auth_eject_all_sessions_by_app_id | ( | const char * | app_id | ) |
Eject all logged in sessions that are using the specified application id.
app_id | Application id to eject (or NULL for all sessions) |
int auth_eject_sessions | ( | user_t * | user, |
int | num | ||
) |
Eject sessions.
user | User |
num | Number of sessions to eject (-1 for all) |
This function enables the Liberator Auth Module to kick out a logged-in user when a new user logs in with the same details. It is typically called from _authfuncs::auth_new_user() when the licence count has reached the maximum, or from an adminstration front end of your Liberator Auth Module.
int auth_eject_sessions_by_app_id | ( | user_t * | user, |
int | num, | ||
char * | app_id | ||
) |
Eject sessions with matching application id.
user | User |
num | Number of sessions to eject (-1 for all) |
app_id | Application to match (NULL if we don't care about application) |
This function enables the Liberator Auth Module to kick out a logged-in user when a new user logs in with the same details from a specified application. It is typically called from _authfuncs::auth_new_user() when the licence count has reached the maximum, or from an adminstration front end of your Liberator Auth Module.
int auth_eject_sessions_by_machine_id | ( | user_t * | user, |
int | num, | ||
char * | machine_id | ||
) |
Eject sessions based on the username by machine id.
user | User to eject for |
num | Number of sessions to eject (-1 for all) |
machine_id | Machine id to match (NULL if we don't care about machine) |
This function enables the Liberator Auth Module to kick out a logged-in user when a new user with the same details logs on to a different machine to the one specified.
int auth_eject_username_by_app_id | ( | char * | username, |
int | num, | ||
char * | app_id | ||
) |
Wrapper for auth_eject_username_by_app_id that takes the user name instead of a _user pointer.
username | Username |
num | Number of sessions to eject (-1 for all) |
app_id | Application to match (NULL if we don't care about application) |
int auth_eject_username_by_machine_id | ( | char * | username, |
int | num, | ||
char * | machine_id | ||
) |
Wrapper for auth_eject_sessions_by_machine_id that takes the user name instead of a _user pointer.
username | Username |
num | Number of sessions to eject (-1 for all) |
machine_id | Machine id to match (NULL if we don't care about machine) |
int auth_eject_username_sessions | ( | char * | username, |
int | num | ||
) |
Wrapper for auth_eject_sessions that takes the user name instead of a _user pointer.
username | Username |
num | Number of sessions to eject (-1 for all) |
void auth_invalidate_all_sessions | ( | int | flags | ) |
Invalidate all sessions for all users in the system.
flags | 0 = just call auth_check_read() 1 = auth_check_read() and auth_map_object() |
Invalidates a session. Invalidating a user session involves the Liberator Auth Module rerequesting details of what the user is looking at from Caplin Liberator and granting permissions accordingly. This enables the Liberator Auth Module to adjust a user's permissions in the middle of a session.
void auth_invalidate_object | ( | char * | name, |
int | flags | ||
) |
Invalidate an object.
name | of the object to invalidate |
flags | 0 = just call auth_check_read() 1 = auth_check_read() and auth_map_object() |
Invalidates an object. Invalidating an object involves the Liberator Auth Module re-assessing whether each user viewing the object is permissioned to do so, and also re-assessing, for each user, which symbol the object being invalidated is mapped onto (if any).
void auth_invalidate_sessions | ( | user_t * | user, |
int | num, | ||
int | flags | ||
) |
Invalidate all sessions for a user.
user | to invalidate sessions for |
num | Number of sessions to invalidate (-1 for all) |
flags | 0 = just call auth_check_read() 1 = auth_check_read() and auth_map_object() |
Invalidates a session. Invalidating a user session involves the Liberator Auth Module rerequesting details of what the user is looking at from Caplin Liberator and granting permissions accordingly. This enables the Liberator Auth Module to adjust a user's permissions in the middle of a session.
void auth_invalidate_sessions_by_name | ( | char * | name, |
int | num, | ||
int | flags | ||
) |
Invalidate all sessions for a username.
name | to invalidate sessions for |
num | Number of sessions to invalidate (-1 for all) |
flags | 0 = just call auth_check_read() 1 = auth_check_read() and auth_map_object() |
Invalidates a session. Invalidating a user session involves the Liberator Auth Module rerequesting details of what the user is looking at from Caplin Liberator and granting permissions accordingly. This enables the Liberator Auth Module to adjust a user's permissions in the middle of a session.