Basic (class)
Class Basic
Basic authentication adapter for Cake\Network\Http\Client
Generally not directly constructed, but instead used by Cake\Network\Http\Client when $options['auth']['type'] is 'basic'
Method Summary
- _generateHeader() protectedGenerate basic [proxy] authentication header
- authentication() publicAdd Authorization header to the request.
- proxyAuthentication() publicProxy Authentication
Method Detail
_generateHeader()source protected
_generateHeader( string $user , string $pass )
Generate basic [proxy] authentication header
Parameters
- string
$user
- Username.
- string
$pass
- Password.
Returns
stringauthentication()source public
authentication( Cake\Network\Http\Request $request , array $credentials )
Add Authorization header to the request.
Parameters
-
Cake\Network\Http\Request
$request
- Request instance.
- array
$credentials
- Credentials.
See
http://www.ietf.org/rfc/rfc2617.txtproxyAuthentication()source public
proxyAuthentication( Cake\Network\Http\Request $request , array $credentials )
Proxy Authentication
Parameters
-
Cake\Network\Http\Request
$request
- Request instance.
- array
$credentials
- Credentials.
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/3.2/class-Cake.Network.Http.Auth.Basic.html