Свойство | Type | Description | |
---|---|---|---|
$realm | |||
$static_resource_paths |
Méthode | Description | |
---|---|---|
__construct ( $realm, $statics ) | Initialize the PDO connection and merge user config with defaults. | |
authBeforeDispatch ( ) | ||
call ( ) |
Méthode | Description | |
---|---|---|
checkHttpAuth ( $request ) : array | Look for a HTTP Authorization header and decode it | |
checkPhpAuth ( $request ) : array | Look for PHP authorization headers | |
getForwardingInfo ( Slim\Http\Headers $headers ) : null | UrlInfo | Return a UrlInfo instance if the request contains forwarding information, or null if not. | |
is_authorized ( ) : true | Check if the access request is authorized by a user. A request must either contain session data from a previous login or contain a HTTP Basic authorization info, which is then used to perform a login against the users table in the database. | |
is_static_resource ( $resource ) | Static resources must not be protected. Return true id the requested resource belongs to a static resource path, else false. | |
mkRootUrl ( ) |
public __construct ( $realm, $statics ) |
protected checkHttpAuth ( $request ) : array | ||
$request | HTTP request | |
Résultat | array | with username and pasword, or null |
protected checkPhpAuth ( $request ) : array | ||
$request | HTTP request | |
Résultat | array | with username and pasword, or null |
protected getForwardingInfo ( Slim\Http\Headers $headers ) : null | UrlInfo | ||
$headers | Slim\Http\Headers | |
Résultat | null | UrlInfo |
protected is_authorized ( ) : true | ||
Résultat | true | if authorized else false |
protected is_static_resource ( $resource ) |