ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Public Member Functions | |
__construct ($http_method, $http_url, $parameters=NULL) | |
set_parameter ($name, $value, $allow_duplicates=true) | |
get_parameter ($name) | |
get_parameters () | |
unset_parameter ($name) | |
get_signable_parameters () | |
The request parameters, sorted and concatenated into a normalized string. More... | |
get_signature_base_string () | |
Returns the base string of this request. More... | |
get_normalized_http_method () | |
just uppercases the http method More... | |
get_normalized_http_url () | |
parses the url and rebuilds it to be scheme://host/path More... | |
to_url () | |
builds a url usable for a GET request More... | |
to_postdata () | |
builds the data one would send in a POST request More... | |
to_header ($realm=null) | |
builds the Authorization: header More... | |
__toString () | |
sign_request ($signature_method, $consumer, $token) | |
build_signature ($signature_method, $consumer, $token) | |
Static Public Member Functions | |
static | from_request ($http_method=NULL, $http_url=NULL, $parameters=NULL) |
attempt to build up a request from what was passed to the server More... | |
static | from_consumer_and_token ($consumer, $token, $http_method, $http_url, $parameters=NULL) |
pretty much a helper function to set up the request More... | |
Data Fields | |
$base_string | |
Static Public Attributes | |
static | $version = '1.0' |
static | $POST_INPUT = 'php://input' |
Protected Attributes | |
$parameters | |
$http_method | |
$http_url | |
Static Private Member Functions | |
static | generate_timestamp () |
util function: current timestamp More... | |
static | generate_nonce () |
util function: current nonce More... | |
OAuthRequest::__construct | ( | $http_method, | |
$http_url, | |||
$parameters = NULL |
|||
) |
Definition at line 258 of file OAuth.php.
References array, and OAuthUtil\parse_parameters().
OAuthRequest::build_signature | ( | $signature_method, | |
$consumer, | |||
$token | |||
) |
|
static |
pretty much a helper function to set up the request
Definition at line 322 of file OAuth.php.
References $consumer, $version, array, generate_nonce(), and generate_timestamp().
Referenced by sspmod_oauth_Consumer\getAccessToken(), sspmod_oauth_Consumer\getRequestToken(), sspmod_oauth_Consumer\getUserInfo(), and sspmod_oauth_Consumer\postRequest().
|
static |
attempt to build up a request from what was passed to the server
Definition at line 270 of file OAuth.php.
References $_SERVER, OAuthUtil\get_headers(), OAuthUtil\parse_parameters(), and OAuthUtil\split_header().
|
staticprivate |
util function: current nonce
Definition at line 501 of file OAuth.php.
Referenced by from_consumer_and_token().
|
staticprivate |
util function: current timestamp
Definition at line 494 of file OAuth.php.
References time.
Referenced by from_consumer_and_token().
OAuthRequest::get_normalized_http_method | ( | ) |
OAuthRequest::get_normalized_http_url | ( | ) |
OAuthRequest::get_parameter | ( | $name | ) |
Definition at line 351 of file OAuth.php.
References $name.
Referenced by OAuthServer\check_signature(), OAuthServer\get_consumer(), OAuthServer\get_signature_method(), and OAuthServer\get_token().
OAuthRequest::get_signable_parameters | ( | ) |
The request parameters, sorted and concatenated into a normalized string.
Definition at line 367 of file OAuth.php.
References $params, and OAuthUtil\build_http_query().
OAuthRequest::get_signature_base_string | ( | ) |
Returns the base string of this request.
The base string defined as the method, the url and the parameters (normalized), each urlencoded and the concated with &.
Definition at line 387 of file OAuth.php.
References array, and OAuthUtil\urlencode_rfc3986().
OAuthRequest::set_parameter | ( | $name, | |
$value, | |||
$allow_duplicates = true |
|||
) |
OAuthRequest::sign_request | ( | $signature_method, | |
$consumer, | |||
$token | |||
) |
Definition at line 476 of file OAuth.php.
References $consumer.
OAuthRequest::to_header | ( | $realm = null | ) |
OAuthRequest::to_postdata | ( | ) |
builds the data one would send in a POST request
Definition at line 440 of file OAuth.php.
References OAuthUtil\build_http_query().
OAuthRequest::to_url | ( | ) |
builds a url usable for a GET request
Definition at line 428 of file OAuth.php.
References $out.
OAuthRequest::unset_parameter | ( | $name | ) |
|
static |
Definition at line 255 of file OAuth.php.
Referenced by from_consumer_and_token().