attach(true); try { $user = $broker->getUserInfo(); } catch (NotAttachedException $e) { header('Location: ' . $_SERVER['REQUEST_URI']); exit; } catch (SsoException $e) { header("Location: error.php?sso_error=" . $e->getMessage(), true, 307); } if (!$user) { header("Location: login.php", true, 307); exit; } ?> <?= $broker->broker ?> (Single Sign-On demo)

broker ?> (Single Sign-On demo)

Logged in

Logout