ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
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 280 of file OAuth.php.
References OAuthUtil\parse_parameters().
OAuthRequest::build_signature | ( | $signature_method, | |
$consumer, | |||
$token | |||
) |
|
static |
pretty much a helper function to set up the request
Definition at line 346 of file OAuth.php.
References PHPMailer\PHPMailer\$token, $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().
|
static |
attempt to build up a request from what was passed to the server
Definition at line 293 of file OAuth.php.
References $_SERVER, OAuthUtil\get_headers(), OAuthUtil\parse_parameters(), and OAuthUtil\split_header().
|
staticprivate |
util function: current nonce
Definition at line 543 of file OAuth.php.
Referenced by from_consumer_and_token().
|
staticprivate |
util function: current timestamp
Definition at line 535 of file OAuth.php.
Referenced by from_consumer_and_token().
OAuthRequest::get_normalized_http_method | ( | ) |
OAuthRequest::get_normalized_http_url | ( | ) |
OAuthRequest::get_parameter | ( | $name | ) |
OAuthRequest::get_signable_parameters | ( | ) |
The request parameters, sorted and concatenated into a normalized string.
Definition at line 396 of file OAuth.php.
References PHPMailer\PHPMailer\$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 417 of file OAuth.php.
References OAuthUtil\urlencode_rfc3986().
OAuthRequest::set_parameter | ( | $name, | |
$value, | |||
$allow_duplicates = true |
|||
) |
OAuthRequest::sign_request | ( | $signature_method, | |
$consumer, | |||
$token | |||
) |
Definition at line 515 of file OAuth.php.
References PHPMailer\PHPMailer\$token.
OAuthRequest::to_header | ( | $realm = null | ) |
builds the Authorization: header
Definition at line 482 of file OAuth.php.
References $out, and OAuthUtil\urlencode_rfc3986().
OAuthRequest::to_postdata | ( | ) |
builds the data one would send in a POST request
Definition at line 474 of file OAuth.php.
References OAuthUtil\build_http_query().
OAuthRequest::to_url | ( | ) |
builds a url usable for a GET request
Definition at line 461 of file OAuth.php.
References $out.
OAuthRequest::unset_parameter | ( | $name | ) |
|
static |
Definition at line 277 of file OAuth.php.
Referenced by from_consumer_and_token().