Class OAuthServer

Description

Located in /OAuth.php (line 485)


	
			
Variable Summary
Method Summary
 OAuthServer OAuthServer ( $data_store)
 void add_signature_method ( $signature_method)
 void check_nonce ( $consumer,  $token,  $nonce,  $timestamp)
 void check_signature ( &$request,  $consumer,  $token)
 void check_timestamp ( $timestamp)
 void fetch_access_token ( &$request)
 void fetch_request_token ( &$request)
 void get_consumer ( &$request)
 void get_signature_method ( &$request)
 void get_token ( &$request,  $consumer, [ $token_type = "access"])
 void get_version ( &$request)
 void verify_request ( &$request)
Variables
mixed $data_store (line 490)
mixed $signature_methods = array() (line 488)
mixed $timestamp_threshold = 300 (line 486)
mixed $version = '1.0' (line 487)
Methods
Constructor OAuthServer (line 492)
OAuthServer OAuthServer ( $data_store)
  • $data_store
add_signature_method (line 496)
void add_signature_method ( $signature_method)
  • $signature_method
check_nonce (line 664)

check that the nonce is not repeated

check that the nonce is not repeated

void check_nonce ( $consumer,  $token,  $nonce,  $timestamp)
  • $consumer
  • $token
  • $nonce
  • $timestamp
check_signature (line 625)

all-in-one function to check the signature on a request

all-in-one function to check the signature on a request should guess the signature method appropriately

void check_signature ( &$request,  $consumer,  $token)
  • &$request
  • $consumer
  • $token
check_timestamp (line 652)

check that the timestamp is new enough

check that the timestamp is new enough

void check_timestamp ( $timestamp)
  • $timestamp
fetch_access_token (line 526)

process an access_token request

process an access_token request returns the access token on success

void fetch_access_token ( &$request)
  • &$request
fetch_request_token (line 507)

process a request_token request

process a request_token request returns the request token on success

void fetch_request_token ( &$request)
  • &$request
get_consumer (line 590)

try to find the consumer for the provided request's consumer key

try to find the consumer for the provided request's consumer key

void get_consumer ( &$request)
  • &$request
get_signature_method (line 572)

figure out the signature with some defaults

figure out the signature with some defaults

void get_signature_method ( &$request)
  • &$request
get_token (line 609)

try to find the token for the provided request's token key

try to find the token for the provided request's token key

void get_token ( &$request,  $consumer, [ $token_type = "access"])
  • &$request
  • $consumer
  • $token_type
get_version (line 557)

version 1

version 1

void get_version ( &$request)
  • &$request
verify_request (line 545)

verify an api call, checks all the parameters

verify an api call, checks all the parameters

void verify_request ( &$request)
  • &$request

Documentation generated on Thu, 22 Oct 2009 12:54:45 -0700 by phpDocumentor 1.4.3