summaryrefslogtreecommitdiffstats
path: root/examples/consumer/index.php
diff options
context:
space:
mode:
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>