Class to represent an OAuth server. More...
Public Member Functions | |
| __construct (OAuthDataStore $data_store) | |
| Class constructor. | |
| void | add_signature_method (OAuthSignatureMethod $signature_method) |
| Add a signature method. | |
| OAuthToken null | fetch_request_token (OAuthRequest &$request) |
| Process a request_token request. | |
| OAuthToken null | fetch_access_token (OAuthRequest &$request) |
| Process an access_token request. | |
| array | verify_request (OAuthRequest &$request) |
| Verify an API call, checks all the parameters. | |
Protected Attributes | |
| int | $timestamp_threshold = 300 |
| Timestamp threshhold. | |
| string | $version = '1.0' |
| Version string. | |
| array | $signature_methods = [] |
| Signature methods. | |
| OAuthDataStore | $data_store |
| Data store. | |
Class to represent an OAuth server.
| ceLTIc\LTI\OAuth\OAuthServer::__construct | ( | OAuthDataStore | $data_store | ) |
Class constructor.
| OAuthDataStore | $data_store | Data store |
| void ceLTIc\LTI\OAuth\OAuthServer::add_signature_method | ( | OAuthSignatureMethod | $signature_method | ) |
Add a signature method.
| OAuthSignatureMethod | $signature_method | Signature method |
References ceLTIc\LTI\OAuth\OAuthRequest\get_parameter().
| OAuthToken null ceLTIc\LTI\OAuth\OAuthServer::fetch_access_token | ( | OAuthRequest & | $request | ) |
Process an access_token request.
Returns the access token on success
| OAuthRequest | $request | Request |
References $version, and ceLTIc\LTI\OAuth\OAuthRequest\get_parameter().
| OAuthToken null ceLTIc\LTI\OAuth\OAuthServer::fetch_request_token | ( | OAuthRequest & | $request | ) |
Process a request_token request.
Returns the request token on success
| OAuthRequest | $request | Request |
| array ceLTIc\LTI\OAuth\OAuthServer::verify_request | ( | OAuthRequest & | $request | ) |
Verify an API call, checks all the parameters.
| OAuthRequest | $request | Request |
References ceLTIc\LTI\OAuth\OAuthRequest\get_parameter().
|
protected |
Data store.
|
protected |
Signature methods.
|
protected |
Timestamp threshhold.
|
protected |
Version string.
Referenced by fetch_access_token().