2016-09-03 9 views
1

Google認証でログインしようとするとエラーが表示されます。私はハイブリッド認証を使用しています。 HTTPでの作業ですが、HTTPSで作業していません。解決方法Googleソーシャルログインでユーザープロフィールのリクエストに失敗しました

User profile request failed. Most likely the user is not connected to the provider and he should authenticate again. Ooophs, we got an error: User profile request failed! Google returned an error: exception 'Exception' with message 'The Authorization Service has return

コード

$hybridauth = new Hybrid_Auth($setting); 
$provider = $hybridauth->authenticate($this->session->data['provider']); 
//get the user profile 
$profile = $provider->getUserProfile(); 
$this->register($this->session->data['provider'], (array)$profile); 
+0

HybridAuthでこの問題も発生しています –

答えて

0

OAuth2Clientクラスは最近、RFC6749の仕様に準拠するために変更されました: エラーをご参照ください。 ここでそれらをチェックしてください:https://tools.ietf.org/html/rfc6749#section-2.3.1

私はこれが唯一の影響を受けるPOST要求と考えています。

は、このPRにアップデートを入手:https://github.com/hybridauth/hybridauth/pull/707

私はこれが今にもマスターにマージされていると信じて、あなたは単にコードの新しいコピーを取得し、ローカルで更新できます。

関連する問題