ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Public Member Functions | |
__construct ($data_store) | |
add_signature_method ($signature_method) | |
fetch_request_token (&$request) | |
process a request_token request returns the request token on success More... | |
fetch_access_token (&$request) | |
process an access_token request returns the access token on success More... | |
verify_request (&$request) | |
verify an api call, checks all the parameters More... | |
Protected Attributes | |
$timestamp_threshold = 300 | |
$version = 1.0 | |
$signature_methods = array() | |
$data_store | |
Private Member Functions | |
get_version (&$request) | |
version 1 More... | |
get_signature_method (&$request) | |
figure out the signature with some defaults More... | |
get_consumer (&$request) | |
try to find the consumer for the provided request's consumer key More... | |
get_token (&$request, $consumer, $token_type="access") | |
try to find the token for the provided request's token key More... | |
check_signature (&$request, $consumer, $token) | |
all-in-one function to check the signature on a request should guess the signature method appropriately More... | |
check_timestamp ($timestamp) | |
check that the timestamp is new enough More... | |
check_nonce ($consumer, $token, $nonce, $timestamp) | |
check that the nonce is not repeated More... | |
OAuthServer::__construct | ( | $data_store | ) |
Definition at line 502 of file OAuth.php.
References $data_store.
OAuthServer::add_signature_method | ( | $signature_method | ) |
|
private |
check that the nonce is not repeated
Definition at line 699 of file OAuth.php.
References $timestamp, and $token.
Referenced by check_signature().
|
private |
all-in-one function to check the signature on a request should guess the signature method appropriately
Definition at line 651 of file OAuth.php.
References $OAuth_last_computed_signature, $timestamp, $token, check_nonce(), check_timestamp(), and get_signature_method().
Referenced by fetch_access_token(), fetch_request_token(), and verify_request().
|
private |
check that the timestamp is new enough
Definition at line 685 of file OAuth.php.
References $timestamp.
Referenced by check_signature().
OAuthServer::fetch_access_token | ( | & | $request | ) |
process an access_token request returns the access token on success
Definition at line 539 of file OAuth.php.
References $token, check_signature(), get_consumer(), get_token(), and get_version().
OAuthServer::fetch_request_token | ( | & | $request | ) |
process a request_token request returns the request token on success
Definition at line 519 of file OAuth.php.
References $token, check_signature(), get_consumer(), and get_version().
|
private |
try to find the consumer for the provided request's consumer key
Definition at line 612 of file OAuth.php.
Referenced by fetch_access_token(), fetch_request_token(), and verify_request().
|
private |
figure out the signature with some defaults
Definition at line 589 of file OAuth.php.
Referenced by check_signature().
|
private |
try to find the token for the provided request's token key
Definition at line 630 of file OAuth.php.
References $token.
Referenced by fetch_access_token(), and verify_request().
|
private |
version 1
Definition at line 574 of file OAuth.php.
References $version.
Referenced by fetch_access_token(), fetch_request_token(), and verify_request().
OAuthServer::verify_request | ( | & | $request | ) |
verify an api call, checks all the parameters
Definition at line 559 of file OAuth.php.
References $OAuth_last_computed_signature, $token, check_signature(), get_consumer(), get_token(), and get_version().
|
protected |
Definition at line 500 of file OAuth.php.
Referenced by __construct().
|
protected |
Definition at line 497 of file OAuth.php.
Referenced by get_version().