ONO::ToolBox::Auth

Functions

admin();

Administrator login, logout and authentication using the ono_auth_asid cookie. Note that this feature seems to be DEPRECATED, it may be removed soon.

ONO::ToolBox::Auth->admin( );
returns: \%vars

auth();

The main ONO platform authentication logic, using the ono_auth_sid_v2107 cookie (latest version as of July 2021).

This handles login, logout and authentication, it provides basic user info and keeps statistics up to date.

ONO::ToolBox::Auth->auth( $db,$community,$vars_ref );
returns: \%vars

makesid();

Generate an ONO SID (Session ID), combining the username with a random string, and store it in the user's data directory.

ONO::ToolBox::Auth->makesid( );
returns: ("$username-$boundary")

mobile_identifier();

Check if we're using a mobile device.

ONO::ToolBox::Auth->mobile_identifier( );

ono();

ONO Admin and Desk authentication, also supporting IP based access limitations via /etc/security/onoaccess.conf.

ONO::ToolBox::Auth->ono( );
returns: (\%vars,%vars)

sudo();

Replace the current username with the currently selected user the sudoer wishes to impersonate.

ONO::ToolBox::Auth->sudo( $community, $vars_ref );
returns: \%vars

Sub-Modules

Dependencies