Класс BasicAuthentication
Базовая аутентификация
Пакет: Cake\Network\Http
Авторские права: Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
Лицензия: MIT License
Расположено в Cake/Network/Http/BasicAuthentication.php
Авторские права: Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
Лицензия: MIT License
Расположено в Cake/Network/Http/BasicAuthentication.php
Подробное описание методов
_generateHeaderисходный код protected static
_generateHeader( string $user , string $pass )
Генерирует заголовок базовой [прокси] аутентификации
Параметры
- строка
$user - Имя пользователя.
- строка
$pass - Пароль.
Возвращает
stringстрока
authenticationисходный код public static
authentication( HttpSocket $http , array $authInfo )
Аутентификация
Параметры
-
HttpSocket$http - Экземпляр сокета Http.
- массив
$authInfo - $authInfo Информация об аутентификации.
См. также
http://www.ietf.org/rfc/rfc2617.txtproxyAuthenticationисходный код public static
proxyAuthentication( HttpSocket $http , array $proxyInfo )
Прокси-аутентификация
Параметры
-
HttpSocket$http - Экземпляр сокета Http.
- массив
$proxyInfo - $proxyInfo Информация о прокси.
См. также
http://www.ietf.org/rfc/rfc2617.txt
© 2005–2016 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
http://api.cakephp.org/2.7/class-BasicAuthentication.html