Interface AuthenticationInterface
Contract for HTTP authentication strategies.
Namespace: Cake\Http\Client\Auth
Method Summary
-
authentication() public
Add authentication headers to a request.
Method Detail
authentication() ΒΆ public
authentication(Cake\Http\Client\Request $request, array<string, mixed> $credentials): Cake\Http\Client\Request
Add authentication headers to a request.
Parameters
-
Cake\Http\Client\Request$request The request to authenticate.
-
array<string, mixed>$credentials Authentication credentials.
Returns
Cake\Http\Client\Request