ZenphotoCMS 1.6.5

OAuthServer
in package

Table of Contents

Properties

$data_store  : mixed
$signature_methods  : mixed
$timestamp_threshold  : mixed
$version  : mixed

Methods

__construct()  : mixed
add_signature_method()  : mixed
fetch_access_token()  : mixed
process an access_token request returns the access token on success
fetch_request_token()  : mixed
process a request_token request returns the request token on success
verify_request()  : mixed
verify an api call, checks all the parameters
check_nonce()  : mixed
check that the nonce is not repeated
check_signature()  : mixed
all-in-one function to check the signature on a request should guess the signature method appropriately
check_timestamp()  : mixed
check that the timestamp is new enough
get_consumer()  : mixed
try to find the consumer for the provided request's consumer key
get_signature_method()  : mixed
figure out the signature with some defaults
get_token()  : mixed
try to find the token for the provided request's token key
get_version()  : mixed
version 1

Properties

$data_store

protected mixed $data_store

$signature_methods

protected mixed $signature_methods = array()

$timestamp_threshold

protected mixed $timestamp_threshold = 300

$version

protected mixed $version = '1.0'

Methods

__construct()

public __construct(mixed $data_store) : mixed
Parameters
$data_store : mixed

add_signature_method()

public add_signature_method(mixed $signature_method) : mixed
Parameters
$signature_method : mixed

fetch_access_token()

process an access_token request returns the access token on success

public fetch_access_token(mixed &$request) : mixed
Parameters
$request : mixed

fetch_request_token()

process a request_token request returns the request token on success

public fetch_request_token(mixed &$request) : mixed
Parameters
$request : mixed

verify_request()

verify an api call, checks all the parameters

public verify_request(mixed &$request) : mixed
Parameters
$request : mixed

check_nonce()

check that the nonce is not repeated

private check_nonce(mixed $consumer, mixed $token, mixed $nonce, mixed $timestamp) : mixed
Parameters
$consumer : mixed
$token : mixed
$nonce : mixed
$timestamp : mixed

check_signature()

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

private check_signature(mixed &$request, mixed $consumer, mixed $token) : mixed
Parameters
$request : mixed
$consumer : mixed
$token : mixed

check_timestamp()

check that the timestamp is new enough

private check_timestamp(mixed $timestamp) : mixed
Parameters
$timestamp : mixed

get_consumer()

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

private get_consumer(mixed &$request) : mixed
Parameters
$request : mixed

get_signature_method()

figure out the signature with some defaults

private get_signature_method(mixed &$request) : mixed
Parameters
$request : mixed

get_token()

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

private get_token(mixed &$request, mixed $consumer[, mixed $token_type = "access" ]) : mixed
Parameters
$request : mixed
$consumer : mixed
$token_type : mixed = "access"

get_version()

version 1

private get_version(mixed &$request) : mixed
Parameters
$request : mixed

        
On this page

Search results