Class BasicAuthentication

Basic authentication

Package: Cake\Network\Http
Copyright: Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
License: MIT License
Location: Cake/Network/Http/BasicAuthentication.php

Method Summary

Method Detail

_generateHeader()source protected static

_generateHeader( string $user , string $pass )

Generate basic [proxy] authentication header

Parameters

string $user
Username.
string $pass
Password.

Returns

string

authentication()source public static

authentication( HttpSocket $http , array $authInfo )

Authentication

Parameters

HttpSocket $http
Http socket instance.
array $authInfo
$authInfo Authentication info.

See

http://www.ietf.org/rfc/rfc2617.txt

proxyAuthentication()source public static

proxyAuthentication( HttpSocket $http , array $proxyInfo )

Proxy Authentication

Parameters

HttpSocket $http
Http socket instance.
array $proxyInfo
$proxyInfo Proxy info.

See

http://www.ietf.org/rfc/rfc2617.txt

© 2005–2017 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.
https://api.cakephp.org/2.10/class-BasicAuthentication.html