ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class to represent an OAuth Server. More...
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... | |
Class to represent an OAuth Server.
Definition at line 12 of file OAuthServer.php.
IMSGlobal\LTI\OAuth\OAuthServer::__construct | ( | $data_store | ) |
Definition at line 20 of file OAuthServer.php.
References IMSGlobal\LTI\OAuth\OAuthServer\$data_store.
IMSGlobal\LTI\OAuth\OAuthServer::add_signature_method | ( | $signature_method | ) |
Definition at line 24 of file OAuthServer.php.
|
private |
check that the nonce is not repeated
Definition at line 220 of file OAuthServer.php.
References $timestamp, and PHPMailer\PHPMailer\$token.
Referenced by IMSGlobal\LTI\OAuth\OAuthServer\check_signature().
|
private |
all-in-one function to check the signature on a request should guess the signature method appropriately
Definition at line 179 of file OAuthServer.php.
References $request, $timestamp, PHPMailer\PHPMailer\$token, IMSGlobal\LTI\OAuth\OAuthServer\check_nonce(), IMSGlobal\LTI\OAuth\OAuthServer\check_timestamp(), and IMSGlobal\LTI\OAuth\OAuthServer\get_signature_method().
Referenced by IMSGlobal\LTI\OAuth\OAuthServer\fetch_access_token(), IMSGlobal\LTI\OAuth\OAuthServer\fetch_request_token(), and IMSGlobal\LTI\OAuth\OAuthServer\verify_request().
|
private |
check that the timestamp is new enough
Definition at line 205 of file OAuthServer.php.
References $timestamp.
Referenced by IMSGlobal\LTI\OAuth\OAuthServer\check_signature().
IMSGlobal\LTI\OAuth\OAuthServer::fetch_access_token | ( | & | $request | ) |
process an access_token request returns the access token on success
Definition at line 57 of file OAuthServer.php.
References $request, PHPMailer\PHPMailer\$token, IMSGlobal\LTI\OAuth\OAuthServer\check_signature(), IMSGlobal\LTI\OAuth\OAuthServer\get_consumer(), IMSGlobal\LTI\OAuth\OAuthServer\get_token(), and IMSGlobal\LTI\OAuth\OAuthServer\get_version().
IMSGlobal\LTI\OAuth\OAuthServer::fetch_request_token | ( | & | $request | ) |
process a request_token request returns the request token on success
Definition at line 34 of file OAuthServer.php.
References $request, PHPMailer\PHPMailer\$token, IMSGlobal\LTI\OAuth\OAuthServer\check_signature(), IMSGlobal\LTI\OAuth\OAuthServer\get_consumer(), and IMSGlobal\LTI\OAuth\OAuthServer\get_version().
|
private |
try to find the consumer for the provided request's consumer key
Definition at line 140 of file OAuthServer.php.
References $request.
Referenced by IMSGlobal\LTI\OAuth\OAuthServer\fetch_access_token(), IMSGlobal\LTI\OAuth\OAuthServer\fetch_request_token(), and IMSGlobal\LTI\OAuth\OAuthServer\verify_request().
|
private |
figure out the signature with some defaults
Definition at line 113 of file OAuthServer.php.
References $request.
Referenced by IMSGlobal\LTI\OAuth\OAuthServer\check_signature().
|
private |
try to find the token for the provided request's token key
Definition at line 161 of file OAuthServer.php.
References $request, and PHPMailer\PHPMailer\$token.
Referenced by IMSGlobal\LTI\OAuth\OAuthServer\fetch_access_token(), and IMSGlobal\LTI\OAuth\OAuthServer\verify_request().
|
private |
version 1
Definition at line 94 of file OAuthServer.php.
References $request, and IMSGlobal\LTI\OAuth\OAuthServer\$version.
Referenced by IMSGlobal\LTI\OAuth\OAuthServer\fetch_access_token(), IMSGlobal\LTI\OAuth\OAuthServer\fetch_request_token(), and IMSGlobal\LTI\OAuth\OAuthServer\verify_request().
IMSGlobal\LTI\OAuth\OAuthServer::verify_request | ( | & | $request | ) |
verify an api call, checks all the parameters
Definition at line 79 of file OAuthServer.php.
References $request, PHPMailer\PHPMailer\$token, IMSGlobal\LTI\OAuth\OAuthServer\check_signature(), IMSGlobal\LTI\OAuth\OAuthServer\get_consumer(), IMSGlobal\LTI\OAuth\OAuthServer\get_token(), and IMSGlobal\LTI\OAuth\OAuthServer\get_version().
|
protected |
Definition at line 18 of file OAuthServer.php.
Referenced by IMSGlobal\LTI\OAuth\OAuthServer\__construct().
|
protected |
Definition at line 16 of file OAuthServer.php.
|
protected |
Definition at line 14 of file OAuthServer.php.
|
protected |
Definition at line 15 of file OAuthServer.php.
Referenced by IMSGlobal\LTI\OAuth\OAuthServer\get_version().