yf_oauth_driver_live class| File | plugins/oauth/classes/oauth/yf_oauth_driver_live.class.php |
|---|---|
| Use | _class('oauth_driver_live', 'classes/oauth/') |
| Extends | yf_oauth_driver2 |
A site sets them in its config with $PROJECT_CONF['oauth_driver_live']['NAME'] = ...;
| Property | Default | Description |
|---|---|---|
$get_access_token_method |
'POST' |
|
$scope |
'wl.basic wl.emails wl.offline_access' |
|
$url_params_access_token |
['grant_type' => 'authorization_code'] |
None without a leading underscore.
_ hooks and helpers; not routable as page actionspublic function _get_user_info_for_auth($raw = [])
public function _get_user_info_for_auth($raw = [])
{
$user_info = [
'user_id' => $raw['id'],
'login' => $raw['emails']['preferred'],
'name' => $raw['name'],
'email' => $raw['emails']['preferred'],
'avatar_url' => '',
'profile_url' => $raw['link'],
'locale' => $raw['locale'],
];
return $user_info;
}
from yf_oauth_driver2: _decode_result(), _storage_clean(), _storage_get(), _storage_set(), authorize(), get_access_token(), get_user_info(), login()