diff options
author | Josh Hoyt <josh@janrain.com> | 2006-02-07 07:55:25 +0000 |
---|---|---|
committer | Josh Hoyt <josh@janrain.com> | 2006-02-07 07:55:25 +0000 |
commit | 72891e2151d48641dba3c7e54b92f770c940439a (patch) | |
tree | 88607f13e487c086063b2dcdc654ecbd3784cdf2 /examples/server/trust.php | |
parent | baf98ce3caaae821d68934fdb0410ea30e3124cf (diff) | |
download | php-openid-72891e2151d48641dba3c7e54b92f770c940439a.zip php-openid-72891e2151d48641dba3c7e54b92f770c940439a.tar.gz php-openid-72891e2151d48641dba3c7e54b92f770c940439a.tar.bz2 |
[project @ Updated server example to require config, but have a UI]
Diffstat (limited to 'examples/server/trust.php')
-rw-r--r-- | examples/server/trust.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/examples/server/trust.php b/examples/server/trust.php new file mode 100644 index 0000000..62a860a --- /dev/null +++ b/examples/server/trust.php @@ -0,0 +1,23 @@ +<?php + +require_once "common.php"; + +init(); + +if (!isset($_SESSION['request'])) { + // Should not happen + redirect($server_url); +} + +$info = unserialize($_SESSION['request']); + +unset($_SESSION['request']); + +if (isset($_POST['trust'])) { + // This is a trusted site, so continue + succeed($info); +} else { + redirect($info->getCancelURL()); +} + +?>
\ No newline at end of file |