HTTP_OAuth | --HTTP_OAuth_Message | --HTTP_OAuth_Provider_Request
NOTE: Currently, it's up to the developer to implement the provider side of timestamp and nonce checking.
[line 63]
[line 49]
[line 56]
void __construct( [string $body = ''])
array|null apacheRequestHeaders( )
If the function exists to get the request headers from apache use it to get them, otherwise return null. Abstracted for testing purposes.
string getBody( )
string|null getHeader( string $header)
void getHeaders( )
string|null getQueryString( )
string getRequestMethod( )
string|null getRequestUri( )
Checks if the schema/host is included and strips it. Thanks Naosumi! Bug #16800
string getUrl( )
bool isValidSignature( string $consumerSecret, [string $tokenSecret = ''])
array parseQueryString( string $string)
Does not use built-in urldecoding of name or values like $_GET and $_POST. Instead, names and values are decoded using RFC 3986 as required by OAuth.
array|null peclHttpHeaders( )
If the pecl_http extension is loaded use it to get the incoming request headers, otherwise return null. Abstracted for testing purposes.
HTTP_OAuth_Provider_Request setBody( [string $body = ''])
This is useful if your framework automatically reads the php://input stream and your API puts parameters in the request body.
void setHeaders( [array $headers = array()])
void setParametersFromRequest( )