You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
450 B

<?php
require(__DIR__.'/vendor/autoload.php');
require(__DIR__.'/_config.php');
session_start();
// Configure authkit
\authkit2\Authkit2::configure(OPENID_CLIENT_ID, OPENID_CLIENT_SECRET, OPENID_ENDPOINT);
function html_header()
{
return <<<EOT
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Authkit2 Example</title>
</head>
<body>
EOT;
}
function html_footer()
{
return <<<EOT
</body>
</html>
EOT;
}