class JGoogleAuthOauth2 extends JGoogleAuth

Google OAuth authentication class

Methods

boolean
authenticate()

Method to authenticate to Google

boolean
isAuthenticated()

Verify if the client has been authenticated

mixed
query( string $url, mixed $data = null, array $headers = null, string $method = 'get')

Method to retrieve data from Google

mixed
getOption( string $key)

Get an option from the JGoogleAuth object.

setOption( string $key, mixed $value)

Set an option for the JGoogleAuth object.

__construct( Registry $options = null, JOAuth2Client $client = null)

Constructor.

Details

boolean authenticate()

Method to authenticate to Google

Return Value

boolean True on success.

boolean isAuthenticated()

Verify if the client has been authenticated

Return Value

boolean Is authenticated

mixed query( string $url, mixed $data = null, array $headers = null, string $method = 'get')

Method to retrieve data from Google

Parameters

string $url The URL for the request.
mixed $data The data to include in the request.
array $headers The headers to send with the request.
string $method The type of http request to send.

Return Value

mixed Data from Google.

mixed getOption( string $key)

Get an option from the JGoogleAuth object.

Parameters

string $key The name of the option to get.

Return Value

mixed The option value.

JGoogleAuth setOption( string $key, mixed $value)

Set an option for the JGoogleAuth object.

Parameters

string $key The name of the option to set.
mixed $value The option value to set.

Return Value

JGoogleAuth This object for method chaining.

__construct( Registry $options = null, JOAuth2Client $client = null)

Constructor.

Parameters

Registry $options JGoogleAuth options object.
JOAuth2Client $client OAuth client for Google authentication.