Class BasicAuthentication

Basic authentication

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

Method Detail

_generateHeadersource protected static

_generateHeader( string $user , string $pass )

Generate basic [proxy] authentication header

Parameters

string $user
Username.
string $pass
Password.

Returns

string
string

authenticationsource 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

proxyAuthenticationsource 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–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