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 Detail

_generateHeadersource protected

_generateHeader( string $user , string $pass )

Generate basic [proxy] authentication header

Parameters

string $user
Username.
string $pass
Password.

Returns

string
string

authenticationsource 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.txt

proxyAuthenticationsource 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.1/class-Cake.Network.Http.Auth.Basic.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部