JOAuth2Client
class JOAuth2Client
Joomla Platform class for interacting with an OAuth 2.0 server.
Methods
__construct(
Registry $options = null,
JHttp $http = null,
JInput $input = null,
JApplicationWeb $application = null)
Constructor.
string
authenticate()
Get the access token or redict to the authentication URL.
boolean
isAuthenticated()
Verify if the client has been authenticated
JHttpResponse
createUrl()
Create the URL for authentication.
string
query(
string $url,
mixed $data = null,
array $headers = array(),
string $method = 'get',
int $timeout = null)
Send a signed Oauth request.
mixed
getOption(
string $key)
Get an option from the JOAuth2Client instance.
setOption(
string $key,
mixed $value)
Set an option for the JOAuth2Client instance.
array
getToken()
Get the access token from the JOAuth2Client instance.
setToken(
array $value)
Set an option for the JOAuth2Client instance.
array
refreshToken(
string $token = null)
Refresh the access token instance.