ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
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 560 of file OAuth.php.
References $data_store.
OAuthServer::add_signature_method | ( | $signature_method | ) |
|
private |
check that the nonce is not repeated
Definition at line 772 of file OAuth.php.
References $timestamp, and PHPMailer\PHPMailer\$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 721 of file OAuth.php.
References $request, $timestamp, PHPMailer\PHPMailer\$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 752 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 599 of file OAuth.php.
References $request, PHPMailer\PHPMailer\$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 577 of file OAuth.php.
References $request, PHPMailer\PHPMailer\$token, check_signature(), get_consumer(), and get_version().
|
private |
try to find the consumer for the provided request's consumer key
Definition at line 676 of file OAuth.php.
References $request.
Referenced by fetch_access_token(), fetch_request_token(), and verify_request().
|
private |
figure out the signature with some defaults
Definition at line 650 of file OAuth.php.
References $request.
Referenced by check_signature().
|
private |
try to find the token for the provided request's token key
Definition at line 697 of file OAuth.php.
References $request, and PHPMailer\PHPMailer\$token.
Referenced by fetch_access_token(), and verify_request().
|
private |
version 1
Definition at line 633 of file OAuth.php.
References $request, and $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 620 of file OAuth.php.
References $request, PHPMailer\PHPMailer\$token, check_signature(), get_consumer(), get_token(), and get_version().
|
protected |
Definition at line 558 of file OAuth.php.
Referenced by __construct().
|
protected |
Definition at line 556 of file OAuth.php.
Referenced by sspmod_oauth_OAuthServer\get_signature_methods().
|
protected |
Definition at line 555 of file OAuth.php.
Referenced by get_version().