PHP:Hybridauth重定向到HTTPS页面
我对HybridAuth有以下问题: 假设我从“”页开始 我现在有以下脚本:PHP:Hybridauth重定向到HTTPS页面,php,login,facebook-login,hybridauth,google-plus-signin,Php,Login,Facebook Login,Hybridauth,Google Plus Signin,我对HybridAuth有以下问题: 假设我从“”页开始 我现在有以下脚本: require_once('hybridauth/config.php'); require_once( "hybridauth/Hybrid/Auth.php" ); $hybridauth = new Hybrid_Auth( $config ); $adapter = $hybridauth->authenticate( $provider);
require_once('hybridauth/config.php');
require_once( "hybridauth/Hybrid/Auth.php" );
$hybridauth = new Hybrid_Auth( $config );
$adapter = $hybridauth->authenticate( $provider);
$user_profile = $adapter->getUserProfile();
它应该重定向到Facebook/Google/Twitter,然后转到HybridAuth
index.php,这个过程应该在那里完成,然后重定向回我开始的页面(“”)
我现在唯一的问题是,它重定向到“https://...“而不是”http://...,这不起作用,因为我的开发服务器上没有ssl证书,所以浏览器只会显示错误
如何修复此错误?如何使HybridAuth重定向到右侧,http://...,第页
config.php:
<?php
$config = array(
"base_url" => "http://dev.XYZ.COM/hybridauth/",
"providers" => array (
"Google" => array (
"enabled" => true,
"keys" => array ( "id" => "XYZ", "secret" => "XYZ" ),
),
"Facebook" => array (
"enabled" => true,
"keys" => array ( "id" => "XYZ", "secret" => "XYZ" ),
),
),
"debug_mode" => false,
"debug_file" => "",
);
未来世界的:
您可以通过手动设置重定向url
hybridauth->authenticate($PROVIDER, array("hauth_return_to" => "http://REDIRECT.URL"));
对于未来世界:
您可以通过手动设置重定向url
hybridauth->authenticate($PROVIDER, array("hauth_return_to" => "http://REDIRECT.URL"));