Ubuntu Manpages

LedgerSMB::Auth.pm

Provides an abstraction layer for session management and authentication.

This routine provides an abstraction layer for session management and authentication. The current application only ships with a simple authentication layer using database-native accounts. Other authentication methods are quite possible though currently every LedgerSMB user must be a database user.

Each plugin library must provide the following methods.

Check whether a session exists and handle failure appropriately.

Modules are free to define how failure should be addressed.

Create a session
Destroy a session.
Get credentials and return them to the application.

Must return a hashref with the following entries:

login password

Prompt user for credentials

Send an http error to the browser.

# Small Medium Business Accounting software # http://www.ledgersmb.org/ # # # Copyright (C) 2006-2011 # This work contains copyrighted information from a number of sources all used # with permission. It is released under the GNU General Public License # Version 2 or, at your option, any later version. See COPYRIGHT file for # details.