/** * @static * @throws OAuth2_Exception * @param string $adapter_id * @return OAuth2_Adapter */ public static function getAdapterInstance($adapter_id) { return OAuth2_Adapter::getInstance($adapter_id); }
public function __construct($config) { $config['CLIENT_ID'] = $config['APP_ID']; $config['CLIENT_SECRET'] = $config['SECRET_KEY']; parent::__construct($config); }
public function login($params, array $token_params = array()) { // Set paramters tha are necessary for getting access token $token_params = array('grant_type' => 'authorization_code', 'redirect_uri' => urldecode($this->getConnectUrl()), 'code' => $params['code']); return parent::login($params, $token_params); }