Skip to content

OAuth1Server

  • Full name: \OAuth1Server

Properties

timestamp_threshold

protected $timestamp_threshold

version

protected $version

signature_methods

protected $signature_methods

data_store

protected $data_store

Methods

__construct

public __construct(mixed $data_store): mixed

Parameters:

Parameter Type Description
$data_store mixed

add_signature_method

public add_signature_method(mixed $signature_method): mixed

Parameters:

Parameter Type Description
$signature_method mixed

fetch_request_token

process a request_token request returns the request token on success

public fetch_request_token(mixed& $request): mixed

Parameters:

Parameter Type Description
$request mixed

fetch_access_token

process an access_token request returns the access token on success

public fetch_access_token(mixed& $request): mixed

Parameters:

Parameter Type Description
$request mixed

verify_request

verify an api call, checks all the parameters

public verify_request(mixed& $request): mixed

Parameters:

Parameter Type Description
$request mixed

get_version

version 1

private get_version(mixed& $request): mixed

Parameters:

Parameter Type Description
$request mixed

get_signature_method

figure out the signature with some defaults

private get_signature_method(mixed& $request): mixed

Parameters:

Parameter Type Description
$request mixed

get_consumer

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

private get_consumer(mixed& $request): mixed

Parameters:

Parameter Type Description
$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:

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

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

Parameters:

Parameter Type Description
$request mixed
$consumer mixed
$token mixed

check_timestamp

check that the timestamp is new enough

private check_timestamp(mixed $timestamp): mixed

Parameters:

Parameter Type Description
$timestamp mixed

check_nonce

check that the nonce is not repeated

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

Parameters:

Parameter Type Description
$consumer mixed
$token mixed
$nonce mixed
$timestamp mixed


Automatically generated on 2025-03-18