summaryrefslogtreecommitdiffstats
path: root/examples/consumer/index.php
diff options
context:
space:
mode:
authortailor <cygnus@cprogrammer.org>2007-11-20 20:02:52 +0000
committertailor <cygnus@cprogrammer.org>2007-11-20 20:02:52 +0000
commit8d6f82a082e79462bfa1a4026479fbf38bcfc576 (patch)
tree2f7d79bc7a4267cde83c37e302974be7d0ef3a23 /examples/consumer/index.php
parentaa9361aaba848687781a67b38387dedf3e7f2b6f (diff)
downloadphp-openid-8d6f82a082e79462bfa1a4026479fbf38bcfc576.zip
php-openid-8d6f82a082e79462bfa1a4026479fbf38bcfc576.tar.gz
php-openid-8d6f82a082e79462bfa1a4026479fbf38bcfc576.tar.bz2
[project @ Update example RP to use PAPE extension]
Diffstat (limited to 'examples/consumer/index.php')
-rw-r--r--examples/consumer/index.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/consumer/index.php b/examples/consumer/index.php
index 235f7bb..343a39c 100644
--- a/examples/consumer/index.php
+++ b/examples/consumer/index.php
@@ -1,3 +1,8 @@
+<?php
+require_once "common.php";
+
+global $pape_policy_uris;
+?>
<html>
<head><title>PHP OpenID Authentication Example</title></head>
<style type="text/css">
@@ -52,6 +57,15 @@
Identity&nbsp;URL:
<input type="hidden" name="action" value="verify" />
<input type="text" name="openid_identifier" value="" />
+
+ <p>Optionally, request these PAPE policies:</p>
+ <p>
+ <?php foreach ($pape_policy_uris as $i => $uri) {
+ print "<input type=\"checkbox\" name=\"policies[]\" value=\"$uri\" />";
+ print "$uri<br/>";
+ } ?>
+ </p>
+
<input type="submit" value="Verify" />
</form>
</div>