Thanks immediate response. As per advise i understood the SSO functionality. I created the url as per example_sso.php and load that URL in ifream but I getting the following issue. Could you please advise this.
Reference to nonexisting parameter -1.
When I logout the myDBR above the mentioned issue also not shown. Just rediect my application home page.
<?php
$token = '34324234324'; //(secert token to environment setting)
$url = 'http://example.com/mydbr/report.php?r=4&u1=1&m=1&h=112435435345435435435&i=1&hdr=0';
$f_do_autologin = true;
$user = "wsasteam";
$name = "wsasteam";
$groups = "Sale";
$email = "wsasteam@gmail.com";
$telephone = '+358 123 2345' ;
$admin = '0';
$secret = '34324234324'; //(secert token to environment setting)
if ( @$_REQUEST['continue'] || $f_do_autologin )
{
if ($f_do_autologin) {
}
// User's email is optional
if (isset($_REQUEST['noemailchange'])) {
$email = '';
}
else {
// User's email can be erased by setting blank email address
$email = isset($_REQUEST['email']) ? $_REQUEST['email'] : '' ;
}
// User's telephone is optional
if (isset($_REQUEST['notelephonechange'])) {
$email = '';
}
else {
// User's telephone can be erased by setting blank telephone address
$email = isset($_REQUEST['telephone']) ? $_REQUEST['telephone'] : '' ;
}
// Group is optional
if (isset($_REQUEST['nogroupchange'])) {
$groups = '';
}
$hash = sha1( $user . $name . $groups . $email . $telephone . $admin . $token . $secret );
$url .= '?user=' . urlencode($user) . '&name=' . urlencode($name) . '&hash=' . $hash;
if (!isset($_REQUEST['nogroupchange'])) {
$url .= '&groups=' . urlencode($groups);
}
if (!isset($_REQUEST['noemailchange'])) {
$url .= '&email=' . urlencode($email);
}
if (!isset($_REQUEST['notelephonechange'])) {
$url .= '&telephone=' . urlencode($telephone);
}
$url .= '&admin=' . $admin;
}
?>
<div class="content_fluid">
<div class="content_fluid_left" style="width:100%">
<iframe id="iframeId" src="<?php echo $url; ?>"
width="100%" height="500px"></iframe>[u]
<div class="clearMe"></div>
</div>
</div>
Also in mydbr not created any user