summaryrefslogtreecommitdiffstats
path: root/php
diff options
context:
space:
mode:
authorChristophe Nowicki <cnowicki@easter-eggs.com>2004-09-08 16:21:34 +0000
committerChristophe Nowicki <cnowicki@easter-eggs.com>2004-09-08 16:21:34 +0000
commit3a959f3925fd8edd09a6744fb66822028a811e37 (patch)
tree8e4752bad9630f07661ed81a32307656b0574179 /php
parentdb8d9f930f9acb2d0f8e9e344bc6fa01d8f4ce8d (diff)
downloadlasso-3a959f3925fd8edd09a6744fb66822028a811e37.tar.gz
lasso-3a959f3925fd8edd09a6744fb66822028a811e37.tar.xz
lasso-3a959f3925fd8edd09a6744fb66822028a811e37.zip
Improve setup system : edit metadata and allow the administrator to select
the authentification methode (HTTP Basic or HTML Form).
Diffstat (limited to 'php')
-rw-r--r--php/Attic/examples/sample-idp/create_metadata.php12
-rw-r--r--php/Attic/examples/sample-idp/edit_metadata.php2
-rw-r--r--php/Attic/examples/sample-idp/setup.php17
3 files changed, 30 insertions, 1 deletions
diff --git a/php/Attic/examples/sample-idp/create_metadata.php b/php/Attic/examples/sample-idp/create_metadata.php
index cef56991..8bd9c41d 100644
--- a/php/Attic/examples/sample-idp/create_metadata.php
+++ b/php/Attic/examples/sample-idp/create_metadata.php
@@ -86,7 +86,17 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
-<body onLoad="window.close()">
+<script type="text/javascript">
+<!--
+ function set_and_close()
+ {
+ opener.document.frm.metadata.value = '<?php echo $form->exportValue('filename'); ?>';
+ window.close();
+ }
+// -->
+</script>
+</head>
+<body onLoad="set_and_close()">
</body>
</html>
<?php
diff --git a/php/Attic/examples/sample-idp/edit_metadata.php b/php/Attic/examples/sample-idp/edit_metadata.php
index 8d8927e7..0bc31a06 100644
--- a/php/Attic/examples/sample-idp/edit_metadata.php
+++ b/php/Attic/examples/sample-idp/edit_metadata.php
@@ -52,6 +52,8 @@
<?php
$form->display();
?>
+<br>
+<p>Copyright &copy; 2004 Entr'ouvert</p>
</body>
</html>
<?php
diff --git a/php/Attic/examples/sample-idp/setup.php b/php/Attic/examples/sample-idp/setup.php
index 5acdde45..631b753c 100644
--- a/php/Attic/examples/sample-idp/setup.php
+++ b/php/Attic/examples/sample-idp/setup.php
@@ -377,6 +377,8 @@
<form name='frm' action='<?php echo $PHP_SELF ?>' method='POST'>
<p align='center'>Lasso Identity Provider Setup</p>
+<br>
+<hr>
<p>
<table>
<caption>Database Configuration</caption>
@@ -391,6 +393,21 @@
<hr>
<p>
<table>
+<caption>Authentification Configuration</caption>
+<tr>
+ <td>Authentification type :</td>
+ <td>
+ <select name='auth_type'>
+ <option value="auth_form">HTML Login/Password Form</option>
+ <option value="auth_basic">HTTP Auth Basic</option>
+ </select>
+ </td><td>&nbsp;</td>
+</tr>
+</table>
+</p>
+<hr>
+<p>
+<table>
<caption>Identity Provider</caption>
<tr>