Jump to content

Авторизация через mail.ru

Featured Replies

Posted

Все сделал, данные получаю, но не удается авторизоваться. Переадресовывает на страницу входа с сообщением:

Что-то пошло не так. Пожалуйста, попробуйте ещё раз.

В системных логах:

Array

(

    [nickname] => Дмитрий
    [client_id] => 9e80cc56d66
    [id] => 207303
    [image] => https://filin.mail.ru/pic?d=3wUBhiVWaTmp_AFJeieZxBIJ6oy9tbVGLcnXNWibU5f3w_eg~~&width=180&height=180
    [first_name] => Дмитрий
    [email] => [email protected]
    [name] => Дмитрий
    [gender] => m
    [birthday] => 04.01.2003

)

#0 /var/www/site.ru/system/Login/Handler/OAuth2/Custom.php(474): IPS\Log::log()
#1 /var/www/site.ru/system/Login/Handler/OAuth2/Custom.php(319): IPS\Login\Handler\OAuth2\Custom->_userData()
#2 /var/www/site.ru/system/Login/Handler/OAuth2/OAuth2.php(420): IPS\Login\Handler\OAuth2\Custom->authenticatedUserId()
#3 /var/www/site.ru/system/Login/Handler/OAuth2/OAuth2.php(404): IPS\Login\Handler\OAuth2->_processAccessToken()
#4 /var/www/site.ru/system/Login/Handler/OAuth2/OAuth2.php(194): IPS\Login\Handler\OAuth2->_handleAuthorizationResponse()
#5 /var/www/site.ru/system/Login/Login.php(354): IPS\Login\Handler\OAuth2->authenticateButton()
#6 /var/www/site.ru/applications/core/modules/front/system/login.php(93): IPS\Login->authenticate()
#7 /var/www/site.ru/system/Dispatcher/Controller.php(139): IPS\core\modules\front\system\login->manage()
#8 /var/www/site.ru/system/Dispatcher/Dispatcher.php(169): IPS\Dispatcher\Controller->execute()
#9 /var/www/site.ru/index.php(16): IPS\Dispatcher->run()
#10 {main}

Получается, по нажатию на кнопку, отправляет на mail.ru, далее возвращает на форум с токеном. Далее форум отправляет на mail.ru запрос, видно что данные пользователя получены.

А далее, вероятно не верно указал параметры

22.png

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Ответить в этой теме...

Последние посетители 0

  • No registered users viewing this page.