Oauth 1 authentication strategy for Cake\Network\Http\Client
This object does not handle getting Oauth access tokens from the service provider. It only handles make client requests after you have obtained the Oauth tokens.
Generally not directly constructed, but instead used by Cake\Network\Http\Client when $options['auth']['type'] is 'oauth'
_buildAuth( array $data )
Builds the Oauth Authorization header value.
$data
string
_encode( string $value )
URL Encodes a value based on rules of rfc3986
$value
string
_hmacSha1( Cake\Network\Http\Request $request , array $credentials )
Use HMAC-SHA1 signing.
This method is suitable for plain HTTP or HTTPS.
Cake\Network\Http\Request
$request
$credentials
string
_normalizedParams( Cake\Network\Http\Request $request , array $oauthValues )
Sorts and normalizes request data and oauthValues
Section 9.1.1 of Oauth spec.
Cake\Network\Http\Request
$request
$oauthValues
string
_normalizedUrl( string $url )
Builds a normalized URL
Section 9.1.2. of the Oauth spec
$url
string
Cake\Core\Exception\Exception
_plaintext( Cake\Network\Http\Request $request , array $credentials )
Plaintext signing
This method is not suitable for plain HTTP. You should only ever use PLAINTEXT when dealing with SSL services.
Cake\Network\Http\Request
$request
$credentials
string
authentication( Cake\Network\Http\Request $request , array $credentials )
Add headers for Oauth authorization.
Cake\Network\Http\Request
$request
$credentials
Cake\Core\Exception\Exception
baseString( Cake\Network\Http\Request $request , array $oauthValues )
Generate the Oauth basestring
Cake\Network\Http\Request
$request
$oauthValues
string
© 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.Oauth.html