| Александр Алеферов |
|
|---|---|
Настроил hybridauth. Всё хорошо, но есть проблемы. Вот мой "рабочий" конфигурационный файл.
<?php
// ----------------------------------------------------------------------------------------
// HybridAuth Config file: http://hybridauth.sourceforge.net/userguide/Configuration.html
// ----------------------------------------------------------------------------------------
global $cfg;
return
array(
// Do not change this
"base_url" => $cfg['mainurl'] . '/' . $cfg['plugins_dir'] . '/hybridauth/lib/',
// Fill your data below
"providers" => array(
"Yandex" => array (
"enabled" => true,
"keys" => array (
"id" => "5984cc01d******06442acee0e8b",
"secret" => "c35410b9a9******86a92f2e35fba3f" ) ),
"Google" => array(
"enabled" => true,
"keys" => array(
"id" => "56******-l3upap6siu3******qkhvku3f9b.apps.googleusercontent.com",
"secret" => "rK******3fHlo4i9e"
),
"scope" => "https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email",
),
"Twitter" => array ( // 'key' is your twitter application consumer key
"enabled" => true,
"keys" => array ( "key" => "YY8QeL******s5k", "secret" => "LyZ0MdacS1hjKSO******x1bui63phYK1U5" ) ),
"Mailru" => array ( // 'key' is your twitter application consumer key
"enabled" => true,
"keys" => array ( "id" => "7v9", "secret" => "3d3b2e******668f01" ) ),
"Vkontakte" => array(
"enabled" => true,
"keys" => array(
"scope" => "",
"id" => "4******64",
"secret" => "6Z******QLi") ),
// // openid providers
// "OpenID" => array(
// "enabled" => false
// )
),
// if you want to enable logging, set 'debug_mode' to true then provide a writable file by the web server on "debug_file"
"debug_mode" => false,
"debug_file" => realpath('.')."/datas/tmp/hybridauth.log"
);
От Twitter, VK приходят(либо в настройках что-то) e-mail вида: 2624366414@twitter.com и 263039532@vkontakte.com . Я понял что адрес 263039532@vkontakte.com пустышка. И это не то что нужно. Яндекс, Google и Mailru работают. Что подскажите? |