Oauth 1 authentication strategy for Cake\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\Http\Client when $options['auth']['type'] is 'oauth'
_buildAuth( array $data )
Builds the Oauth Authorization header value.
$data
_encode( string $value )
URL Encodes a value based on rules of rfc3986
$value
_hmacSha1( Cake\Http\Client\Request $request , array $credentials )
Use HMAC-SHA1 signing.
This method is suitable for plain HTTP or HTTPS.
Cake\Http\Client\Request
$request
$credentials
_normalizedParams( Cake\Http\Client\Request $request , array $oauthValues )
Sorts and normalizes request data and oauthValues
Section 9.1.1 of Oauth spec.
Cake\Http\Client\Request
$request
$oauthValues
_normalizedUrl( Psr\Http\Message\UriInterface $uri )
Builds a normalized URL
Section 9.1.2. of the Oauth spec
$uri
_plaintext( Cake\Http\Client\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\Http\Client\Request
$request
$credentials
_rsaSha1( Cake\Http\Client\Request $request , array $credentials )
Use RSA-SHA1 signing.
This method is suitable for plain HTTP or HTTPS.
Cake\Http\Client\Request
$request
$credentials
authentication( Cake\Http\Client\Request $request , array $credentials )
Add headers for Oauth authorization.
Cake\Http\Client\Request
$request
$credentials
Cake\Http\Client\Request
Cake\Core\Exception\Exception
baseString( Cake\Http\Client\Request $request , array $oauthValues )
Generate the Oauth basestring
Cake\Http\Client\Request
$request
$oauthValues
© 2005–2017 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/3.4/class-Cake.Http.Client.Auth.Oauth.html