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

Class to represent an OAuth Data Store. More...

Inheritance diagram for OAuthDataStore:
OAuthDataStore

Public Member Functions

 lookup_consumer ($consumer_key)
 Find consumer based on key.
 
 lookup_token ($consumer, $token_type, $token)
 Find token.
 
 lookup_nonce ($consumer, $token, $nonce, $timestamp)
 Check nonce value.
 
 new_request_token ($consumer, $callback=null)
 Get new request token.
 
 new_access_token ($token, $consumer, $verifier=null)
 Get new access token.
 

Detailed Description

Class to represent an OAuth Data Store.

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

Definition at line 12 of file OAuth/OAuthDataStore.php.

Member Function Documentation

◆ lookup_consumer()

lookup_consumer (   $consumer_key)

Find consumer based on key.

Parameters
string$consumer_key
Returns
OAuthConsumer

Reimplemented in OAuthDataStore.

Definition at line 22 of file OAuth/OAuthDataStore.php.

◆ lookup_nonce()

lookup_nonce (   $consumer,
  $token,
  $nonce,
  $timestamp 
)

Check nonce value.

Parameters
OAuthConsumer$consumerConsumer
OAuthToken$tokenToken value
string$nonceNonce value
string$timestampDate/time of request
Returns
bool

Reimplemented in OAuthDataStore.

Definition at line 51 of file OAuth/OAuthDataStore.php.

◆ lookup_token()

lookup_token (   $consumer,
  $token_type,
  $token 
)

Find token.

Parameters
OAuthConsumer$consumerConsumer
string | null$token_typeToken type
string | null$tokenToken value
Returns
OAuthToken

Reimplemented in OAuthDataStore.

Definition at line 36 of file OAuth/OAuthDataStore.php.

◆ new_access_token()

new_access_token (   $token,
  $consumer,
  $verifier = null 
)

Get new access token.

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

Reimplemented in OAuthDataStore.

Definition at line 78 of file OAuth/OAuthDataStore.php.

◆ new_request_token()

new_request_token (   $consumer,
  $callback = null 
)

Get new request token.

Parameters
OAuthConsumer$consumerConsumer
string | null$callbackCallback URL
Returns
string|null

Reimplemented in OAuthDataStore.

Definition at line 64 of file OAuth/OAuthDataStore.php.


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