Basic authentication adapter for Cake\Http\Client
Generally not directly constructed, but instead used by {@link \Cake\Http\Client} when $options['auth']['type'] is 'basic'
Generate basic [proxy] authentication header
Add Authorization header to the request.
Proxy Authentication
_generateHeader(string $user, string $pass): string
Generate basic [proxy] authentication header
string
$user Username.
string
$pass Password.
string
authentication(Cake\Http\Client\Request $request, array $credentials): Cake\Http\Client\Request
Add Authorization header to the request.
Cake\Http\Client\Request
$request Request instance.
array
$credentials Credentials.
Cake\Http\Client\Request
proxyAuthentication(Cake\Http\Client\Request $request, array $credentials): Cake\Http\Client\Request
Proxy Authentication
Cake\Http\Client\Request
$request Request instance.
array
$credentials Credentials.
Cake\Http\Client\Request
© 2005–present 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/4.4/class-Cake.Http.Client.Auth.Basic.html