Digest authentication adapter for Cake\Http\Client
Generally not directly constructed, but instead used by {@link \Cake\Http\Client} when $options['auth']['type'] is 'digest'
Cake\Http\Client
Instance of Cake\Http\Client
Constructor
Generate the header Authorization
Retrieve information about the authentication
Add Authorization header to the request.
__construct(Cake\Http\Client $client, array|null $options = null)
Constructor
Cake\Http\Client
$client Http client object.
array|null
$options optional Options list.
_generateHeader(Cake\Http\Client\Request $request, array<string, mixed> $credentials): string
Generate the header Authorization
Cake\Http\Client\Request
$request The request object.
array<string, mixed>
$credentials Authentication credentials.
string
_getServerInfo(Cake\Http\Client\Request $request, array $credentials): array
Retrieve information about the authentication
Will get the realm and other tokens by performing another request without authentication to get authentication challenge.
Cake\Http\Client\Request
$request The request object.
array
$credentials Authentication credentials.
array
authentication(Cake\Http\Client\Request $request, array<string, mixed> $credentials): Cake\Http\Client\Request
Add Authorization header to the request.
Cake\Http\Client\Request
$request The request object.
array<string, mixed>
$credentials Authentication credentials.
Cake\Http\Client\Request
Instance of Cake\Http\Client
Cake\Http\Client
© 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.Digest.html