LTI Integration Library 5.1.4
PHP class library for building LTI integrations
 
Loading...
Searching...
No Matches
OAuthDataStore Class Reference

Class to represent an OAuth datastore. More...

+ Inheritance diagram for OAuthDataStore:

Public Member Functions

 __construct (Platform|Tool $system)
 Class constructor.
 
 lookup_consumer (string $consumerKey)
 Create an OAuthConsumer object for the system.
 
 lookup_token (OAuthConsumer $consumer, ?string $tokenType, ?string $token)
 Create an OAuthToken object for the system.
 
 lookup_nonce (OAuthConsumer $consumer, OAuthToken $token, string $value, string $timestamp)
 Lookup nonce value for the system.
 
 new_request_token (OAuthConsumer $consumer, ?string $callback=null)
 Get new request token.
 
 new_access_token (string $token, OAuthConsumer $consumer, ?string $verifier=null)
 Get new access token.
 
- Public Member Functions inherited from OAuthDataStore

Detailed Description

Class to represent an OAuth datastore.

Author
Stephen P Vickers steph.nosp@m.en@s.nosp@m.pvsof.nosp@m.twar.nosp@m.eprod.nosp@m.ucts.nosp@m..com
Licence: http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3

Constructor & Destructor Documentation

◆ __construct()

__construct ( Platform|Tool $system)

Class constructor.

Parameters
Platform | Tool$systemSystem object

Member Function Documentation

◆ lookup_consumer()

lookup_consumer ( string $consumerKey)

Create an OAuthConsumer object for the system.

Parameters
string$consumerKeyConsumer key value
Returns
OAuthConsumer OAuthConsumer object

Reimplemented from OAuthDataStore.

◆ lookup_nonce()

lookup_nonce ( OAuthConsumer $consumer,
OAuthToken $token,
string $value,
string $timestamp )

Lookup nonce value for the system.

Parameters
OAuthConsumer$consumerOAuthConsumer object
OAuthToken$tokenToken value
string$valueNonce value
string$timestampDate/time of request
Returns
bool True if the nonce value already exists

Reimplemented from OAuthDataStore.

◆ lookup_token()

lookup_token ( OAuthConsumer $consumer,
?string $tokenType,
?string $token )

Create an OAuthToken object for the system.

Parameters
string$consumerOAuthConsumer object
string | null$tokenTypeToken type
string | null$tokenToken value
Returns
OAuthToken OAuthToken object

Reimplemented from OAuthDataStore.

◆ new_access_token()

new_access_token ( string $token,
OAuthConsumer $consumer,
?string $verifier = null )

Get new access token.

Parameters
string$tokenToken value
OAuthConsumer$consumerOAuthConsumer object
string | null$verifierVerification code
Returns
string|null Null value

Reimplemented from OAuthDataStore.

◆ new_request_token()

new_request_token ( OAuthConsumer $consumer,
?string $callback = null )

Get new request token.

Parameters
OAuthConsumer$consumerOAuthConsumer object
string | null$callbackCallback URL
Returns
string|null Null value

Reimplemented from OAuthDataStore.