PHP Класс LoginMiddleware, BicBucStriim

Наследование: extends Slim\Middleware
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$realm
$static_resource_paths

Открытые методы

Метод Описание
__construct ( $realm, $statics ) Initialize the PDO connection and merge user config with defaults.
authBeforeDispatch ( )
call ( )

Защищенные методы

Метод Описание
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 ( )

Описание методов

__construct() публичный Метод

Initialize the PDO connection and merge user config with defaults.
public __construct ( $realm, $statics )

authBeforeDispatch() публичный Метод

public authBeforeDispatch ( )

call() публичный Метод

public call ( )

checkHttpAuth() защищенный Метод

Look for a HTTP Authorization header and decode it
protected checkHttpAuth ( $request ) : array
$request HTTP request
Результат array with username and pasword, or null

checkPhpAuth() защищенный Метод

Look for PHP authorization headers
protected checkPhpAuth ( $request ) : array
$request HTTP request
Результат array with username and pasword, or null

getForwardingInfo() защищенный Метод

First we look for the standard 'Forwarded' header from RFC 7239, then for the non-standard X-Forwarded-... headers.
protected getForwardingInfo ( Slim\Http\Headers $headers ) : null | UrlInfo
$headers Slim\Http\Headers
Результат null | UrlInfo

is_authorized() защищенный Метод

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.
protected is_authorized ( ) : true
Результат true if authorized else false

is_static_resource() защищенный Метод

Static resources must not be protected. Return true id the requested resource belongs to a static resource path, else false.
protected is_static_resource ( $resource )

mkRootUrl() защищенный Метод

protected mkRootUrl ( )

Описание свойств

$realm защищенное свойство

protected $realm

$static_resource_paths защищенное свойство

protected $static_resource_paths