Class HTTPAuthSession
A Class for handling a session using HTTP Basic Authentication
Package: davical\HTTPAuthSession
Copyright: Catalyst .Net Ltd
License: GNU GPL v2
Author: Andrew McMillan <andrew@catalyst.net.nz>
Located at HTTPAuthSession.php
Copyright: Catalyst .Net Ltd
License: GNU GPL v2
Author: Andrew McMillan <andrew@catalyst.net.nz>
Located at HTTPAuthSession.php
public
|
|
public
|
#
AuthFailedResponse( string $auth_header = "" )
Authorisation failed, so we send some headers to say so. |
public
|
|
public
|
#
DigestAuthSession( )
Handle Digest HTTP Authentication (no passwords were harmed in this transaction!) |
public
|
#
ParseDigestHeader( mixed $auth_header )
Parse the HTTP Digest Auth Header |
public
|
#
CheckPassword( mixed $username, mixed $password )
CheckPassword does all of the password checking and returns a user record object, or false if it all ends in tears. |
public
boolean
|
|
public
|
|
public
|
#
AssignSessionDetails( object $principal )
Internal function used to assign the session details to a user's new session. |
public
|
$username |
|
#
Username |
public
|
$user_no |
|
#
User ID number |
public
|
$principal_id |
|
#
Principal ID |
public
|
|
#
User e-mail |
|
public
|
$fullname |
|
#
User full name |
public
|
$groups |
|
#
Group rights (not implemented) |