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 Data Store. More...

+ Inheritance diagram for OAuthDataStore:

Public Member Functions

 lookup_consumer (string $consumer_key)
 Find consumer based on key.
 
 lookup_token (OAuthConsumer $consumer, ?string $token_type, ?string $token)
 Find token.
 
 lookup_nonce (OAuthConsumer $consumer, OAuthToken $token, string $nonce, string $timestamp)
 Check nonce value.
 
 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.
 

Detailed Description

Class to represent an OAuth Data Store.

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

Member Function Documentation

◆ lookup_consumer()

lookup_consumer ( string $consumer_key)
abstract

Find consumer based on key.

Parameters
string$consumer_key
Returns
OAuthConsumer

Reimplemented in OAuthDataStore.

◆ lookup_nonce()

lookup_nonce ( OAuthConsumer $consumer,
OAuthToken $token,
string $nonce,
string $timestamp )
abstract

Check nonce value.

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

Reimplemented in OAuthDataStore.

◆ lookup_token()

lookup_token ( OAuthConsumer $consumer,
?string $token_type,
?string $token )
abstract

Find token.

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

Reimplemented in OAuthDataStore.

◆ new_access_token()

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

Get new access token.

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

Reimplemented in OAuthDataStore.

◆ new_request_token()

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

Get new request token.

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

Reimplemented in OAuthDataStore.