summaryrefslogtreecommitdiffstats
path: root/examples/consumer/try_auth.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/try_auth.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/try_auth.php')
-rw-r--r--examples/consumer/try_auth.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/consumer/try_auth.php b/examples/consumer/try_auth.php
index 3cf5b4b..4d2714c 100644
--- a/examples/consumer/try_auth.php
+++ b/examples/consumer/try_auth.php
@@ -37,6 +37,13 @@ function run() {
$auth_request->addExtension($sreg_request);
}
+ $policy_uris = $_GET['policies'];
+
+ $pape_request = new Auth_OpenID_PAPE_Request($policy_uris);
+ if ($pape_request) {
+ $auth_request->addExtension($pape_request);
+ }
+
// Redirect the user to the OpenID server for authentication.
// Store the token for this authentication so we can verify the
// response.