Property | Type | Description | |
---|---|---|---|
$config | array | Default configurations |
Method | Description | |
---|---|---|
authenticate ( ) : boolean | authenticate the user using the defined methods in $config | |
authorize ( ) : boolean | authorize the user using the defined methods in $config | |
isLoggedIn ( ) : boolean | Is user is already logged in via session or cookie? | |
startup ( ) | Auth startup All authentication and authorization checking are done in this method | |
unauthenticated ( ) | Handles unauthenticated access attempt. | |
unauthorized ( ) | Handles unauthorized access attempt. |
Method | Description | |
---|---|---|
_ControllerAuthorize ( array $config ) : boolean | Is user authorized for the requested Controller & Action method? | |
_UserAuthenticate ( array $config ) : boolean | Is user authenticated? It checks for: - concurrent session - user credentials in session & cookies - cookies theft and manipulations - session Hijacking and fixation. | |
check ( array $config, string $type ) : boolean | check for authentication or authorization | |
concurentSession ( ) | ||
loggedIn ( ) : boolean | Checks if user is logged in or not. |
public authenticate ( ) : boolean | ||
return | boolean |
public isLoggedIn ( ) : boolean | ||
return | boolean |
public startup ( ) |