OAUTHPROVIDER(3) 1 OAUTHPROVIDER(3)The OAuthProvider classINTRODUCTION
Manages an OAuth provider class.
See also an external in-depth tutorial titled Writing an OAuth Provider Service, which takes a hands-on approach to providing this ser-
vice. There are also OAuth provider examples within the OAuth extensions sources.
CLASS SYNOPSIS
OAuthProvider
OAuthProvider
Methods
o finalpublic bool OAuthProvider::addRequiredParameter (string $req_params)
o public void OAuthProvider::callconsumerHandler (void )
o public void OAuthProvider::callTimestampNonceHandler (void )
o public void OAuthProvider::calltokenHandler (void )
o public void OAuthProvider::checkOAuthRequest ([string $uri], [string $method])
o public OAuthProvider::__construct ([array $params_array])
o public void OAuthProvider::consumerHandler (callable $callback_function)
o finalpublicstatic string OAuthProvider::generateToken (int $size, [bool $strong = false])
o public void OAuthProvider::is2LeggedEndpoint (mixed $params_array)
o public void OAuthProvider::isRequestTokenEndpoint (bool $will_issue_request_token)
o finalpublic bool OAuthProvider::removeRequiredParameter (string $req_params)
o finalpublicstatic string OAuthProvider::reportProblem (string $oauthexception, [bool $send_headers = true])
o finalpublic bool OAuthProvider::setParam (string $param_key, [mixed $param_val])
o finalpublic bool OAuthProvider::setRequestTokenPath (string $path)
o public void OAuthProvider::timestampNonceHandler (callable $callback_function)
o public void OAuthProvider::tokenHandler (callable $callback_function)
PHP Documentation Group OAUTHPROVIDER(3)
Check Out this Related Man Page
OAUTH(3) 1 OAUTH(3)The OAuth classINTRODUCTION
The OAuth extension provides a simple interface to interact with data providers using the OAuth HTTP specification to protect private
resources.
CLASS SYNOPSIS
OAuth
OAuth
Properties
o public$debug
o public$sslChecks
o public$debugInfo
Methods
o public OAuth::__construct OAUTH_SIG_METHOD_HMACSHA1 (string $consumer_key, string $consumer_secret, [string $signature_method], [int
$auth_type])
o public void OAuth::__destruct (void )
o public bool OAuth::disableDebug (void )
o public bool OAuth::disableRedirects (void )
o public bool OAuth::disableSSLChecks (void )
o public bool OAuth::enableDebug (void )
o public bool OAuth::enableRedirects (void )
o public bool OAuth::enableSSLChecks (void )
o public mixed OAuth::fetch (string $protected_resource_url, [array $extra_parameters], [string $http_method], [array $http_headers])
o public string OAuth::generateSignature (string $http_method, string $url, [mixed $extra_parameters])
o public array OAuth::getAccessToken (string $access_token_url, [string $auth_session_handle], [string $verifier_token], [string
$http_method])
o public array OAuth::getCAPath (void )
o public string OAuth::getLastResponse (void )
o public string OAuth::getLastResponseHeaders (void )
o public array OAuth::getLastResponseInfo (void )
o public string OAuth::getRequestHeader (string $http_method, string $url, [mixed $extra_parameters])
o public array OAuth::getRequestToken (string $request_token_url, [string $callback_url], [string $http_method])
o public mixed OAuth::setAuthType (int $auth_type)
o public mixed OAuth::setCAPath ([string $ca_path], [string $ca_info])
o public mixed OAuth::setNonce (string $nonce)
o public void OAuth::setRequestEngine (int $reqengine)
o public mixed OAuth::setRSACertificate (string $cert)
o public bool OAuth::setSSLChecks (int $sslcheck)
o public mixed OAuth::setTimestamp (string $timestamp)
o public bool OAuth::setToken (string $token, string $token_secret)
o public bool OAuth::setVersion (string $version)
PROPERTIES
o $debug
-
o $sslChecks
-
o $debugInfo
-
PHP Documentation Group OAUTH(3)