|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
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 () | |
| 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' |
Static Private Member Functions | |
| static | generate_timestamp () |
| util function: current timestamp More... | |
| static | generate_nonce () |
| util function: current nonce More... | |
Private Attributes | |
| $parameters | |
| $http_method | |
| $http_url | |
| OAuthRequest::__construct | ( | $http_method, | |
| $http_url, | |||
$parameters = null |
|||
| ) |
Definition at line 216 of file OAuth.php.
References $http_method, $http_url, and $parameters.
| OAuthRequest::__toString | ( | ) |
| OAuthRequest::build_signature | ( | $signature_method, | |
| $consumer, | |||
| $token | |||
| ) |
Definition at line 468 of file OAuth.php.
References $token.
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 284 of file OAuth.php.
References $http_method, $http_url, $parameters, $token, $version, generate_nonce(), generate_timestamp(), and OAuthUtil\parse_parameters().
Referenced by ilLTIConsumerLaunch\signOAuth().
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 228 of file OAuth.php.
References $_POST, $_SERVER, $http_method, $http_url, $parameters, OAuthUtil\get_headers(), OAuthUtil\parse_parameters(), and OAuthUtil\split_header().
Referenced by ilLTIConsumerResultService\checkSignature().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
util function: current nonce
Definition at line 485 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 477 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 380 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 389 of file OAuth.php.
Referenced by get_signature_base_string(), and to_url().
Here is the caller graph for this function:| OAuthRequest::get_parameter | ( | $name | ) |
| OAuthRequest::get_parameters | ( | ) |
Definition at line 329 of file OAuth.php.
References $parameters.
| OAuthRequest::get_signable_parameters | ( | ) |
The request parameters, sorted and concatenated into a normalized string.
Definition at line 343 of file OAuth.php.
References $parameters, 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 364 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 308 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 457 of file OAuth.php.
References $token, build_signature(), and set_parameter().
Here is the call graph for this function:| OAuthRequest::to_header | ( | ) |
builds the Authorization: header
Definition at line 431 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 423 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 410 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 | ) |
|
private |
Definition at line 209 of file OAuth.php.
Referenced by __construct(), from_consumer_and_token(), and from_request().
|
private |
Definition at line 210 of file OAuth.php.
Referenced by __construct(), from_consumer_and_token(), and from_request().
|
private |
Definition at line 208 of file OAuth.php.
Referenced by __construct(), from_consumer_and_token(), from_request(), get_parameters(), and get_signable_parameters().
|
static |
Definition at line 213 of file OAuth.php.
Referenced by from_consumer_and_token().