【问题标题】:hybridauth: redirect URI is not whitelisted in the apphybridauth:重定向 URI 未在应用程序中列入白名单
【发布时间】: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


    【解决方案1】:

    您应该能够在提供商的页面上设置授权重定向 URI。例如,在 Google's Developer Console 上,您应该能够在您的应用的凭据选项卡上设置授权重定向 URI:

    【讨论】:

    • 感谢您的回答。
    猜你喜欢
    • 1970-01-01
    • 2016-06-01
    • 2021-11-08
    • 2017-09-09
    • 1970-01-01
    • 2016-04-01
    • 2018-06-26
    • 2020-03-27
    • 2019-07-23
    相关资源
    最近更新 更多