Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Invalid
-
3.1.0-RC2
-
None
-
PHP-FPM 5.5.9
MariaDB 10.0.12
nginx 1.4.6
Description
Error occurs during Facebook login with new OAuth plugin. Facebook key (app_id) and secret are filled correctly. Domain is authorized in Facebook app.
Login using Facebook account ends with white page after giving e-mail and password. The URL after submitting login form is:
http://example.org/ucp.php?mode=login&login=external&oauth_service=facebook&code=CODE_HERE
Entries from server logs:
Stack trace:
#0 /vendor/lusitanian/oauth/src/OAuth/OAuth2/Service/AbstractService.php(97): OAuth\Common\Http\Client\StreamClient->retrieveResponse(Object(OAuth\Common\Http\Uri\Uri), Array, Array)
#1 /phpbb/auth/provider/oauth/service/facebook.php(69): OAuth\OAuth2\Service\AbstractService->requestAccessToken('TOKEN_HERE...')
#2 /phpbb/auth/provider/oauth/oauth.php(189): phpbb\auth\provider\oauth\service\facebook->perform_auth_login()
#3 /phpbb/auth/auth.php(934): phpbb\auth\provider\oauth\oauth->login('', '')
#4 /includes/functions.php(2785): phpbb\auth\auth->login('', '', fal" while reading response header from upstream, client: MY_IP, server: MY_DOMAIN, request: "GET /ucp.php?mode=login&login=external&oauth_service=facebook&code=CODE_HERE HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "MY_DOMAIN"
2014/07/20 09:56:12 [error] 16236#0: *374316 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught exception 'OAuth\Common\Http\Exception\TokenResponseException' with message 'Failed to request resource.' in /vendor/lusitanian/oauth/src/OAuth/Common/Http/Client/StreamClient.php:54