Example #1
0
        $loggedInUser = $session->getUser();
        /* If we have a pending request, redirect to trust page.  */
        $openidReq = $session->getRequestInfo();
        if ($openidReq) {
            $status = "confirmTrust";
            $trustRoot = $openidReq->trust_root;
        }
        break;
    default:
        // Nothing to be done any more.
        break;
}
// Clean up.  msg and html have to be kept for later.
$req->close();
$nc->close();
$openid->close();
$session->close();
// Finish off if this request was only for an XRDS file.
if ($status === "xrds") {
    $html->close();
    return;
}
/* ************************************************************************** */
/* Set encoding to UTF-8.  */
header("Content-Type: text/html; charset=utf-8");
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>

<title>NameID: Your Crypto-OpenID</title>