LTI Tool Provider Library  3.0.2
PHP class library for building LTI Tool Providers
OAuthServer Class Reference

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
 

Detailed Description

Class to represent an OAuth Server.

Version
2008-08-04
Licence:
https://opensource.org/licenses/MIT The MIT License

Definition at line 12 of file OAuthServer.php.

Constructor & Destructor Documentation

__construct (   $data_store)

Definition at line 20 of file OAuthServer.php.

References OAuthServer\$data_store.

Member Function Documentation

add_signature_method (   $signature_method)

Definition at line 24 of file OAuthServer.php.

fetch_access_token ( $request)

process an access_token request returns the access token on success

Definition at line 57 of file OAuthServer.php.

fetch_request_token ( $request)

process a request_token request returns the request token on success

Definition at line 34 of file OAuthServer.php.

verify_request ( $request)

verify an api call, checks all the parameters

Definition at line 79 of file OAuthServer.php.

References OAuthServer\$version, and OAuthRequest\get_parameter().

Field Documentation

$data_store
protected

Definition at line 18 of file OAuthServer.php.

Referenced by OAuthServer\__construct().

$signature_methods = array()
protected

Definition at line 16 of file OAuthServer.php.

$timestamp_threshold = 300
protected

Definition at line 14 of file OAuthServer.php.

$version = '1.0'
protected

Definition at line 15 of file OAuthServer.php.

Referenced by OAuthServer\verify_request().


The documentation for this class was generated from the following file: