|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Collaboration diagram for OAuthRequest: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 $http_method, $http_url, $parameters, and OAuthUtil\parse_parameters().
Here is the call graph for this function:| OAuthRequest::__toString | ( | ) |
| OAuthRequest::build_signature | ( | $signature_method, | |
| $consumer, | |||
| $token | |||
| ) |
Definition at line 486 of file OAuth.php.
References $consumer.
Referenced by sign_request().
Here is the caller graph for this function:
|
static |
pretty much a helper function to set up the request
Definition at line 322 of file OAuth.php.
References $consumer, $http_method, $http_url, $parameters, $version, generate_nonce(), and generate_timestamp().
Referenced by sspmod_oauth_Consumer\getAccessToken(), sspmod_oauth_Consumer\getRequestToken(), sspmod_oauth_Consumer\getUserInfo(), and sspmod_oauth_Consumer\postRequest().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
attempt to build up a request from what was passed to the server
Definition at line 270 of file OAuth.php.
References $_SERVER, $http_method, $http_url, $parameters, OAuthUtil\get_headers(), OAuthUtil\parse_parameters(), and OAuthUtil\split_header().
Here is the call graph for this function:
|
staticprivate |
util function: current nonce
Definition at line 501 of file OAuth.php.
Referenced by from_consumer_and_token().
Here is the caller graph for this function:
|
staticprivate |
util function: current timestamp
Definition at line 494 of file OAuth.php.
Referenced by from_consumer_and_token().
Here is the caller graph for this function:| OAuthRequest::get_normalized_http_method | ( | ) |
just uppercases the http method
Definition at line 402 of file OAuth.php.
Referenced by get_signature_base_string().
Here is the caller graph for this function:| OAuthRequest::get_normalized_http_url | ( | ) |
parses the url and rebuilds it to be scheme://host/path
Definition at line 410 of file OAuth.php.
References $path.
Referenced by get_signature_base_string(), and to_url().
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| OAuthRequest::get_parameters | ( | ) |
Definition at line 355 of file OAuth.php.
References $parameters.
| OAuthRequest::get_signable_parameters | ( | ) |
The request parameters, sorted and concatenated into a normalized string.
Definition at line 367 of file OAuth.php.
References $parameters, $params, and OAuthUtil\build_http_query().
Referenced by get_signature_base_string().
Here is the call graph for this function:
Here is the caller graph for this function:| 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 get_normalized_http_method(), get_normalized_http_url(), get_signable_parameters(), and OAuthUtil\urlencode_rfc3986().
Here is the call graph for this function:| OAuthRequest::set_parameter | ( | $name, | |
| $value, | |||
$allow_duplicates = true |
|||
| ) |
Definition at line 336 of file OAuth.php.
References $name.
Referenced by sign_request().
Here is the caller graph for this function:| OAuthRequest::sign_request | ( | $signature_method, | |
| $consumer, | |||
| $token | |||
| ) |
Definition at line 476 of file OAuth.php.
References $consumer, build_signature(), and set_parameter().
Here is the call graph for this function:| OAuthRequest::to_header | ( | $realm = null | ) |
builds the Authorization: header
Definition at line 447 of file OAuth.php.
References $out, $total, and OAuthUtil\urlencode_rfc3986().
Here is the call graph for this function:| 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().
Referenced by to_url().
Here is the call graph for this function:
Here is the caller graph for this function:| OAuthRequest::to_url | ( | ) |
builds a url usable for a GET request
Definition at line 428 of file OAuth.php.
References $out, get_normalized_http_url(), and to_postdata().
Referenced by __toString().
Here is the call graph for this function:
Here is the caller graph for this function:| OAuthRequest::unset_parameter | ( | $name | ) |
|
protected |
Definition at line 251 of file OAuth.php.
Referenced by __construct(), from_consumer_and_token(), and from_request().
|
protected |
Definition at line 252 of file OAuth.php.
Referenced by __construct(), from_consumer_and_token(), and from_request().
|
protected |
Definition at line 250 of file OAuth.php.
Referenced by __construct(), from_consumer_and_token(), from_request(), get_parameters(), and get_signable_parameters().
|
static |
Definition at line 255 of file OAuth.php.
Referenced by from_consumer_and_token().