yf_oauth_driver_box class

Fileplugins/oauth/classes/oauth/yf_oauth_driver_box.class.php
Use_class('oauth_driver_box', 'classes/oauth/')
Extendsyf_oauth_driver2

Public properties

A site sets them in its config with $PROJECT_CONF['oauth_driver_box']['NAME'] = ...;

PropertyDefaultDescription
$get_access_token_method 'POST'
$get_user_info_user_bearer true
$redirect_uri_force_https true
$scope ''
$url_params_access_token ['grant_type' => 'authorization_code']

Public methods 1

None without a leading underscore.

Methods starting with _ hooks and helpers; not routable as page actions

public function _get_user_info_for_auth($raw = [])
    public function _get_user_info_for_auth($raw = [])
    {
        $user_info = [
            'user_id' => $raw['id'],
            'login' => $raw['login'],
            'name' => $raw['name'],
            'email' => $raw['login'],
            'avatar_url' => $raw['avatar_url'],
            'profile_url' => '',
            'phone' => $raw['phone'],
            'lang' => $raw['language'],
        ];
        return $user_info;
    }

Inherited methods

from yf_oauth_driver2: _decode_result(), _storage_clean(), _storage_get(), _storage_set(), authorize(), get_access_token(), get_user_info(), login()