Methods

Construct the Auth_Opauth object

__construct(array $config, $autorun) 

Parameters

$config

$autorun

Class initialisation

_init() 

Create an OpAuth instance

forge(array $config, bool $autorun) 

Parameters

$config

array

any call-time configuration to be used

$autorun

bool

whether or not Opauth should run automatically

Get a response value

get($key, $default) 

Parameters

$key

$default

Returns the Opauth instance for interaction with the core library.

get_instance() : \Opauth

Returns

\Opauth

fetch the callback response

callback() 

use Auth to create a new user, in case we've received enough information to do so

create_user(array $user) : mixed

Parameters

$user

array

array with the raw Opauth response user fields

Returns

mixedid of the user record created, or false if the create failed

 Properties

 

Opauth configuration

$config 

 

<p>name of the database connection to use</p>

$db_connection : string

 

Opauth instance

$opauth 

 

<p>name of the providers table</p>

$provider_table : string

 

Opauth response

$response