Class to represent an OAuth Data Store.
More...
Class to represent an OAuth Data Store.
- Copyright
- Andy Smith (http://oauth.googlecode.com/svn/code/php/)
- Version
- 2008-08-04
- Licence: https://opensource.org/licenses/MIT The MIT License
◆ lookup_consumer()
lookup_consumer |
( |
string | $consumer_key | ) |
|
|
abstract |
Find consumer based on key.
- Parameters
-
- Returns
- OAuthConsumer
Reimplemented in OAuthDataStore.
◆ lookup_nonce()
Check nonce value.
- Parameters
-
OAuthConsumer | $consumer | Consumer |
OAuthToken | $token | Token value |
string | $nonce | Nonce value |
string | $timestamp | Date/time of request |
- Returns
- bool
Reimplemented in OAuthDataStore.
◆ lookup_token()
lookup_token |
( |
OAuthConsumer | $consumer, |
|
|
?string | $token_type, |
|
|
?string | $token ) |
|
abstract |
Find token.
- Parameters
-
OAuthConsumer | $consumer | Consumer |
string | null | $token_type | Token type |
string | null | $token | Token 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 | $token | Token value |
OAuthConsumer | $consumer | OAuthConsumer object |
string | null | $verifier | Verification 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 | $consumer | Consumer |
string | null | $callback | Callback URL |
- Returns
- string|null
Reimplemented in OAuthDataStore.