Apache2-AuthAny
view release on metacpan or search on metacpan
examples/demo/index.php view on Meta::CPAN
<?php
require_once "demo-common.php"; # $style_common, page_template(),
?>
<html>
<head>
<title>mod_auth_any Demo</title>
<style>
<?= $style_common ?>
h2 { font-style: italic; }
.highlight {border: 2px solid; background: #FFFFFF;}
</style>
</head>
<body>
<?php
preg_match('/(.*)\/demo\//', $_SERVER[SCRIPT_FILENAME], $matches);
$current_dir = getcwd();
$current_htaccess = file_get_contents("$current_dir/.htaccess");
$block = <<<BLOCK
$current_dir/.htaccess
<div class="highlight">
<pre>
$current_htaccess
</pre>
</div>
BLOCK;
$main_content = <<<MAIN_CONTENT
<h1>Demo</h1>
<p>
This set of demos is intended to show the basic features of
"Apache2::AuthAny". AuthAny has
an extensible architecture for providing authentication using --any--
authentication mechanism or provider. Each demo includes a PHP file in
a directory protected by a ".htaccess" file containing Apache
directives defined by AuthAny.
</p>
<p>
The .htaccess file in the demo directory supplies directives that will
be in effect for all the demo directories (demo1 - demo8).
</p>
$block
<h2>Identity resolution</h2>
<p>
Apache2::AuthAny (optionally) uses a database table (userIdent) to
resolve the identities provided by the identity providers. Multiple
provider identities can resolve to a single AuthAny identity.
This AuthAny identity can then be used for
authorization purposes.
</p>
<h2>Trial logins</h2>
<p>
To make it possible to show the authentication and authorization
capabilities to anyone coming to this site, several "basic auth" accounts/passwords have been set
up. The password field should be left blank
<ul>
<li><b>aatest1</b> - This user name is not in the identity table. The access provided will be similar
to what you will get if an unknown user (you) logs in with Google or Shibboleth.
</li>
<li><b>aatest2</b> - This user name IS in our userIdent and user
tables. The user's name and roles are available.
</li>
<li><b>aatest3</b> - This user name is linked to the same user as "aatest2".</li>
( run in 1.561 second using v1.01-cache-2.11-cpan-f56aa216473 )