Class Digest
Digest authentication adapter for Cake\Network\Http\Client
Generally not directly constructed, but instead used by Cake\Network\Http\Client when $options['auth']['type'] is 'digest'
Method Detail
__constructsource public
__construct( Cake\Network\Http\Client $client , array|null $options null )
Constructor
Parameters
-
Cake\Network\Http\Client
$client
- Http client object.
- array|null
$options
optional null - Options list.
_generateHeadersource protected
_generateHeader( Cake\Network\Http\Request $request , array $credentials )
Generate the header Authorization
Parameters
-
Cake\Network\Http\Request
$request
- The request object.
- array
$credentials
- Authentication credentials.
Returns
string
string
_getServerInfosource protected
_getServerInfo( Cake\Network\Http\Request $request , array $credentials )
Retrieve information about the authentication
Will get the realm and other tokens by performing another request without authentication to get authentication challenge.
Parameters
-
Cake\Network\Http\Request
$request
- The request object.
- array
$credentials
- Authentication credentials.
Returns
array
modified credentials.
authenticationsource public
authentication( Cake\Network\Http\Request $request , array $credentials )
Add Authorization header to the request.
Parameters
-
Cake\Network\Http\Request
$request
- The request object.
- array
$credentials
- Authentication credentials.
See
http://www.ietf.org/rfc/rfc2617.txtProperties summary
© 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.Digest.html