【发布时间】:2017-01-18 10:08:57
【问题描述】:
我正在使用 hybridauth 插件配置单点登录功能。我花了 2 天时间来设置这个。但是,我收到 facebook 和 google 的重定向 uri 错误。 在 google 和 facebook 我已经给出了这样的网站名称http://example.com
我没有找到放置重定向网址的地方。
现在当我点击 facebook 或 google 时。我遇到了错误。
URL Blocked: This redirect failed because the redirect URI is not whitelisted in the app’s Client OAuth Settings.
Make sure Client and Web OAuth Login are on and add all your app domains as Valid OAuth Redirect URIs.
Google 错误如下。
400. That’s an error.
Error: redirect_uri_mismatch
登录页面存在于根目录中,并且我为 hybridauth 创建了一个文件夹。 在那个文件夹 index.php 文件中。
在 config.php 文件中。我已经给出了这样的baseurl。
"base_url" => "http://example.com/hybridauth/index.php",
我知道这个问题没有太多代码。但根据我的 base_url 和 facebook/google oauth api 问题。
【问题讨论】:
标签: google-oauth facebook-oauth hybridauth