hybridauth:重定向 URI 未在应用程序中列入白名单

hybridauth: redirect URI is not whitelisted in the app

我正在使用 hybridauth 插件配置单点登录功能。我花了 2 天时间设置这个。但是,我在 facebook 和 google 中收到重定向 uri 错误。 在 google 和 facebook 中,我给出了这样的网站名称 http://example.com

我没有找到放置重定向的地方 url。

现在当我点击 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.

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