\OAuthServer
Synopsis
class OAuthServer
{
- // members
- protected integer $timestamp_threshold = 300;
- protected string $version = '1.0';
- protected array $signature_methods = ;
- protected $data_store;
- // methods
- public void __construct()
- public void add_signature_method()
- public void fetch_request_token()
- public void fetch_access_token()
- public void verify_request()
- private void get_version()
- private void get_signature_method()
- private void get_consumer()
- private void get_token()
- private void check_signature()
- private void check_timestamp()
- private void check_nonce()
Members
protected
- $data_store
- $signature_methods
- $timestamp_threshold
- $version
Methods
private
- check_nonce() — check that the nonce is not repeated
- check_signature() — all-in-one function to check the signature on a request should guess the signature method appropriately
- check_timestamp() — check that the timestamp is new enough
- get_consumer() — try to find the consumer for the provided request's consumer key
- get_signature_method() — figure out the signature with some defaults
- get_token() — try to find the token for the provided request's token key
- get_version() — version 1
public
- __construct()
- add_signature_method()
- fetch_access_token() — process an access_token request returns the access token on success
- fetch_request_token() — process a request_token request returns the request token on success
- verify_request() — verify an api call, checks all the parameters