Class OauthPlugin
OAuth signing plugin
- Guzzle\Plugin\Oauth\OauthPlugin implements Symfony\Component\EventDispatcher\EventSubscriberInterface
Link: http://oauth.net/core/1.0/#rfc.section.9.1.1
Located at src/Guzzle/Plugin/Oauth/OauthPlugin.php
public
|
|
public static
|
|
public
array
|
|
public
string
|
#
getSignature(
Calculate signature for request |
public
string
|
#
getStringToSign(
Calculate string to sign |
protected
|
|
public
array
|
#
getParamsToSign(
Get all of the parameters required to sign a request including: * The oauth params * The request GET params * The params passed in the POST body (with a content-type of application/x-www-form-urlencoded) |
public
boolean
|
#
shouldPostFieldsBeSigned( $request )
Decide whether the post fields should be added to the base string that Oauth signs. This implementation is correct. Non-conformant APIs may require that this method be overwritten e.g. the Flickr API incorrectly adds the post fields when the Content-Type is 'application/x-www-form-urlencoded' |
public
string
|
#
generateNonce(
Returns a Nonce Based on the unique id and URL. This will allow for multiple requests in parallel with the same exact timestamp to use separate nonce's. |
public
integer
|
|
protected
array
|
#
prepareParameters( array $data )
Convert booleans to strings, removed unset parameters, and sorts the array |
string |
REQUEST_METHOD_HEADER
Consumer request method constants. See http://oauth.net/core/1.0/#consumer_req_param |
#
'header'
|
string |
REQUEST_METHOD_QUERY
|
#
'query'
|
protected
|
$config
Configuration settings |