Returnurl不能与内部SSO-php一起使用?
我有一个登录系统,我想把它介绍给我的web服务器上的子网站,但是用户在登录后并没有被重定向回正确的位置 现在,SSO将用户发送到-Returnurl不能与内部SSO-php一起使用?,php,iis,redirect,login,windows-server-2008,Php,Iis,Redirect,Login,Windows Server 2008,我有一个登录系统,我想把它介绍给我的web服务器上的子网站,但是用户在登录后并没有被重定向回正确的位置 现在,SSO将用户发送到- https://site.com/home/index.php?email=first.last@thomsonreuters.com&firstname=First&lastname=Last&marketgroup=43003&uid=4334525&time=2014:07:24:19:14:57&digest=
https://site.com/home/index.php?email=first.last@thomsonreuters.com&firstname=First&lastname=Last&marketgroup=43003&uid=4334525&time=2014:07:24:19:14:57&digest=1758b84916f36245cad17fd325f8d3&returnurl=https://site.com/sandbox/subsite
因此,即使为子目录设置了returnurl,用户仍会被重定向回site.com。不确定下一步是什么
下面是代码片段。如果你需要更多,请告诉我
define('SSO_REDIRECT', 'https://sso.com/login/sso/SSOService?app=' . SSO_APP_ID . '&returnurl=' . urlencode('https://site.com/sandbox/subsite'));
// Start authentication and authorization
if (!isset($_SESSION['USER_ID']) && !isset($_POST['digest'])) {
// We've got no session and we've not returned from SSO, so let's redirect to SSO
header('Location: ' . SSO_REDIRECT);
die();
}
你用什么做重定向头的位置:……”或者别的什么。请发布更多的代码。@Athafoud-添加了一些源代码。因此,您正在重定向到SSO,如果我理解,SSO将重新重定向到returnurl。因此,我认为问题在于sso.com/login上运行的代码…@Athafoud-是的。SSO告诉我使用returnurl变量。我确信它将成为web根目录,因为这是我给他们设置应用程序的url。