JOAuth1Client
class JOAuth1Client
Joomla Platform class for interacting with an OAuth 1.0 and 1.0a server.
Methods
Constructor.
Method to for the oauth flow.
Method used to make an OAuth request.
Method to validate a response.
Method to create the URL formed string with the parameters.
Encodes the string or array passed in a way compatible with OAuth.
Method used to generate the current nonce.
Returns an HTTP 200 OK response code and a representation of the requesting user if authentication was successful; returns a 401 status code and an error message if not.
Get an option from the JOauth1aClient instance.
Set an option for the JOauth1aClient instance.
Get the oauth token key or secret.
Set the oauth token.
Details
__construct(
Registry $options = null,
JHttp $client = null,
JInput $input = null,
JApplicationWeb $application = null,
string $version = null)
Constructor.
JHttpResponse
oauthRequest(
string $url,
string $method,
array $parameters,
mixed $data = array(),
array $headers = array())
Method used to make an OAuth request.
abstract
void
validateResponse(
string $url,
JHttpResponse $response)
Method to validate a response.
string
toUrl(
string $url,
array $parameters)
Method to create the URL formed string with the parameters.
string
safeEncode(
mixed $data)
Encodes the string or array passed in a way compatible with OAuth.
If an array is passed each array value will will be encoded.