diff options
author | tailor <cygnus@cprogrammer.org> | 2007-11-20 20:02:52 +0000 |
---|---|---|
committer | tailor <cygnus@cprogrammer.org> | 2007-11-20 20:02:52 +0000 |
commit | 8d6f82a082e79462bfa1a4026479fbf38bcfc576 (patch) | |
tree | 2f7d79bc7a4267cde83c37e302974be7d0ef3a23 /examples/consumer/common.php | |
parent | aa9361aaba848687781a67b38387dedf3e7f2b6f (diff) | |
download | php-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/common.php')
-rw-r--r-- | examples/consumer/common.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/consumer/common.php b/examples/consumer/common.php index ba287c6..5e63fce 100644 --- a/examples/consumer/common.php +++ b/examples/consumer/common.php @@ -27,10 +27,22 @@ function doIncludes() { * Require the Simple Registration extension API. */ require_once "Auth/OpenID/SReg.php"; + + /** + * Require the PAPE extension module. + */ + require_once "Auth/OpenID/PAPE.php"; } doIncludes(); +global $pape_policy_uris; +$pape_policy_uris = array( + PAPE_AUTH_MULTI_FACTOR_PHYSICAL, + PAPE_AUTH_MULTI_FACTOR, + PAPE_AUTH_PHISHING_RESISTANT + ); + function &getStore() { /** * This is where the example will store its OpenID information. |