OAuth1Server
- Full name:
\OAuth1Server
Properties
timestamp_threshold
version
signature_methods
data_store
Methods
__construct
Parameters:
Parameter | Type | Description |
---|---|---|
$data_store |
mixed |
add_signature_method
Parameters:
Parameter | Type | Description |
---|---|---|
$signature_method |
mixed |
fetch_request_token
process a request_token request returns the request token on success
Parameters:
Parameter | Type | Description |
---|---|---|
$request |
mixed |
fetch_access_token
process an access_token request returns the access token on success
Parameters:
Parameter | Type | Description |
---|---|---|
$request |
mixed |
verify_request
verify an api call, checks all the parameters
Parameters:
Parameter | Type | Description |
---|---|---|
$request |
mixed |
get_version
version 1
Parameters:
Parameter | Type | Description |
---|---|---|
$request |
mixed |
get_signature_method
figure out the signature with some defaults
Parameters:
Parameter | Type | Description |
---|---|---|
$request |
mixed |
get_consumer
try to find the consumer for the provided request's consumer key
Parameters:
Parameter | Type | Description |
---|---|---|
$request |
mixed |
get_token
try to find the token for the provided request's token key
Parameters:
Parameter | Type | Description |
---|---|---|
$request |
mixed | |
$consumer |
mixed | |
$token_type |
mixed |
check_signature
all-in-one function to check the signature on a request should guess the signature method appropriately
Parameters:
Parameter | Type | Description |
---|---|---|
$request |
mixed | |
$consumer |
mixed | |
$token |
mixed |
check_timestamp
check that the timestamp is new enough
Parameters:
Parameter | Type | Description |
---|---|---|
$timestamp |
mixed |
check_nonce
check that the nonce is not repeated
Parameters:
Parameter | Type | Description |
---|---|---|
$consumer |
mixed | |
$token |
mixed | |
$nonce |
mixed | |
$timestamp |
mixed |
Automatically generated on 2025-03-18